diff --git a/nix/overlays/haskell-packages.nix b/nix/overlays/haskell-packages.nix new file mode 100644 index 0000000..69169ba --- /dev/null +++ b/nix/overlays/haskell-packages.nix @@ -0,0 +1,20 @@ +pkgsFinal: pkgsPrev: + +let + extension = pkgsPrev.haskell.lib.packageSourceOverrides { + hocker = pkgsPrev.nix-gitignore.gitignoreSource [ ] ../../.; + }; + +in +{ + haskellPackages = + pkgsPrev.haskellPackages.override (old: { + overrides = + pkgsPrev.lib.fold + pkgsPrev.lib.composeExtensions + (old.overrides or (_: _: { })) + [ + extension + ]; + }); +} diff --git a/nix/pkgs.nix b/nix/pkgs.nix index 53327c8..e407ccc 100644 --- a/nix/pkgs.nix +++ b/nix/pkgs.nix @@ -12,4 +12,7 @@ let in import nixpkgs { config = { allowUnfree = true; }; + overlays = [ + (import ./overlays/haskell-packages.nix) + ]; }