summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-09-05 11:26:04 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-09-05 11:26:04 +0200
commit1430c454f3e30ed64d3e75fe91acde31c3339efe (patch)
treeeda8f596a3ee89f9a2cc733152ad5fd5ae34347d /user-profiles
parent8536028d0c4a6906ab03f27bae4b038780697bc6 (diff)
downloadnixos-1430c454f3e30ed64d3e75fe91acde31c3339efe.tar
nixos-1430c454f3e30ed64d3e75fe91acde31c3339efe.tar.gz
nixos-1430c454f3e30ed64d3e75fe91acde31c3339efe.tar.bz2
nixos-1430c454f3e30ed64d3e75fe91acde31c3339efe.tar.xz
nixos-1430c454f3e30ed64d3e75fe91acde31c3339efe.zip
feeds: override uri-bytestring
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/feeds/module.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/user-profiles/feeds/module.nix b/user-profiles/feeds/module.nix
index 9116fa91..9f7bcf9e 100644
--- a/user-profiles/feeds/module.nix
+++ b/user-profiles/feeds/module.nix
@@ -8,7 +8,23 @@ let
8 configPath = "${config.xdg.configHome}/feeds/notmuchrc"; 8 configPath = "${config.xdg.configHome}/feeds/notmuchrc";
9 databasePath = "${config.xdg.dataHome}/feeds"; 9 databasePath = "${config.xdg.dataHome}/feeds";
10 10
11 imm = flakeInputs.imm.defaultPackage.${system}; 11 imm = flakeInputs.imm.defaultPackage.${system}.overrideAttrs (oldAttrs: {
12 buildInputs =
13 let
14 oldDepends = filter (attr: if attr ? name then builtins.match "uri-bytestring(-.*)?" attr.name == null else true) (oldAttrs.buildInputs or []);
15 newDepends = [
16 (pkgs.haskellPackages.uri-bytestring.overrideAttrs (_: {
17 src = pkgs.fetchFromGitHub {
18 owner = "gkleen";
19 repo = "uri-bytestring";
20 rev = "5f7f32c8274bc4d1b81d99582f5148fe3e8b637e";
21 sha256 = "XLanwyCDIlMuOkpE5LbTNOBfL+1kZX+URfj9Bhs1Nsc=";
22 fetchSubmodules = true;
23 };
24 }))
25 ];
26 in oldDepends ++ newDepends;
27 });
12 immWrapped = pkgs.runCommand "${imm.name}-wrapped-${config.home.username}" 28 immWrapped = pkgs.runCommand "${imm.name}-wrapped-${config.home.username}"
13 { nativeBuildInputs = with pkgs; [ makeWrapper imm ]; 29 { nativeBuildInputs = with pkgs; [ makeWrapper imm ];
14 } '' 30 } ''