haskell infra: Allow overriding haskellSrc2nix

This commit is contained in:
John Ericson 2018-05-31 16:29:02 -04:00
parent d7160f39bd
commit 58ce59dd96

View File

@ -149,7 +149,7 @@ in package-set { inherit pkgs stdenv callPackage; } self // {
filter = path: type:
pkgs.lib.hasSuffix "${name}.cabal" path ||
baseNameOf path == "package.yaml";
expr = haskellSrc2nix {
expr = self.haskellSrc2nix {
inherit name;
src = if pkgs.lib.canCleanSource src
then pkgs.lib.cleanSourceWith { inherit src filter; }