From 1430c454f3e30ed64d3e75fe91acde31c3339efe Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 5 Sep 2021 11:26:04 +0200 Subject: feeds: override uri-bytestring --- user-profiles/feeds/module.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'user-profiles/feeds') 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 configPath = "${config.xdg.configHome}/feeds/notmuchrc"; databasePath = "${config.xdg.dataHome}/feeds"; - imm = flakeInputs.imm.defaultPackage.${system}; + imm = flakeInputs.imm.defaultPackage.${system}.overrideAttrs (oldAttrs: { + buildInputs = + let + oldDepends = filter (attr: if attr ? name then builtins.match "uri-bytestring(-.*)?" attr.name == null else true) (oldAttrs.buildInputs or []); + newDepends = [ + (pkgs.haskellPackages.uri-bytestring.overrideAttrs (_: { + src = pkgs.fetchFromGitHub { + owner = "gkleen"; + repo = "uri-bytestring"; + rev = "5f7f32c8274bc4d1b81d99582f5148fe3e8b637e"; + sha256 = "XLanwyCDIlMuOkpE5LbTNOBfL+1kZX+URfj9Bhs1Nsc="; + fetchSubmodules = true; + }; + })) + ]; + in oldDepends ++ newDepends; + }); immWrapped = pkgs.runCommand "${imm.name}-wrapped-${config.home.username}" { nativeBuildInputs = with pkgs; [ makeWrapper imm ]; } '' -- cgit v1.2.3