From 7279ff4a63ea4e7a2a95ca51e4c860f2cbd1d55b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 11 Sep 2018 10:11:25 +0200 Subject: buchhaltung ? --- users/gkleen@odin.nix | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'users') diff --git a/users/gkleen@odin.nix b/users/gkleen@odin.nix index 2a57b392..12ff5959 100644 --- a/users/gkleen@odin.nix +++ b/users/gkleen@odin.nix @@ -9,13 +9,19 @@ sha256 = "02a4py7zx9ib49kijpjckya1pb8xlb3gmp7s1dybsdjmwqbdyzx7"; }; }); - buchhaltung = pkgs.haskell.lib.overrideCabal pkgs.haskell.packages."ghc821".buchhaltung (oldAttrs: { - buildDepends = oldAttrs.buildDepends or [] ++ [ pkgs.makeWrapper ]; - postBuild = '' - ${oldAttrs.postBuild or ""} - wrapProgram $out/bin/buchhaltung \ - --prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [ aqbanking dbacl ])} - ''; - }); + haskell = pkgs.haskell // { + packages = pkgs.haskell.packages // { + ghc822 = ghc822.extend (superH: selfH: { + buchhaltung = pkgs.haskell.lib.overrideCabal superH.buchhaltung (oldAttrs: { + buildDepends = oldAttrs.buildDepends or [] ++ [ pkgs.makeWrapper ]; + postBuild = '' + ${oldAttrs.postBuild or ""} + wrapProgram $out/bin/buchhaltung \ + --prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [ aqbanking dbacl ])} + ''; + }); + }; + }; + }; } // (import ../utils/nix/default.nix) pkgs (import {}); } -- cgit v1.2.3