mirror of
https://github.com/awakesecurity/hocker.git
synced 2024-11-25 07:34:41 +03:00
Add Haskell packages overlay
This commit is contained in:
parent
7cce30e1df
commit
3a61ef6e07
20
nix/overlays/haskell-packages.nix
Normal file
20
nix/overlays/haskell-packages.nix
Normal file
@ -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
|
||||
];
|
||||
});
|
||||
}
|
@ -12,4 +12,7 @@ let
|
||||
in
|
||||
import nixpkgs {
|
||||
config = { allowUnfree = true; };
|
||||
overlays = [
|
||||
(import ./overlays/haskell-packages.nix)
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user