Skip to content
Snippets Groups Projects
Commit a51e591b authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Add `hsPkgsOverrides` to allow customizing the Haskell package set

parent d3a83fdd
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,16 @@
# ^ A string giving the version of ghc and related packages to use.
, packageName
# ^ A string giving the name of the project/package being packaged.
# ^ A string giving the name of the project/package being packaged.
, hsPkgsOverrides ? hfinal: hprev: {}
# An overlay for haskellPackages.
}:
let
hsPkgs = pkgs.haskell.packages.${compilerVersion}.override {
overrides = hfinal: hprev: {
${packageName} = hfinal.callCabal2nix packageName src {};
};
} // (hsPkgsOverrides hfinal hprev);
};
in
rec {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment