diff options
Diffstat (limited to 'bragi.nix')
-rw-r--r-- | bragi.nix | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -23,8 +23,18 @@ | |||
23 | nixpkgs.config.packageOverrides = pkgs: | 23 | nixpkgs.config.packageOverrides = pkgs: |
24 | let | 24 | let |
25 | trivmixService = opts: (pkgs.callPackage ./custom/trivmix-service.nix opts).out; | 25 | trivmixService = opts: (pkgs.callPackage ./custom/trivmix-service.nix opts).out; |
26 | in { | 26 | in rec { |
27 | trivmix = let trivmix = pkgs.haskellPackages.callPackage ./custom/trivmix.nix {}; in | 27 | customizedHaskellPackages = pkgs.recurseIntoAttrs ( |
28 | pkgs.haskellPackages.override { | ||
29 | extensios = self: super: let | ||
30 | callPackage = pkgs.lib.callPackageWith self; | ||
31 | in { | ||
32 | trivmix = callPackage ./custom/trivmix.nix {}; | ||
33 | filelock = callPackage ./custom/filelock.nix {}; | ||
34 | }; | ||
35 | }; | ||
36 | ); | ||
37 | trivmix = let trivmix = customizedHaskellPackages.trivmix; in | ||
28 | pkgs.stdenv.mkDerivation { | 38 | pkgs.stdenv.mkDerivation { |
29 | name = "trivmix-wrapper"; | 39 | name = "trivmix-wrapper"; |
30 | nativeBuildInputs = [ pkgs.makeWrapper ]; | 40 | nativeBuildInputs = [ pkgs.makeWrapper ]; |