Merge pull request #41330 from obsidiansystems/haskellSrc2nix-overriding
haskell infra: Allow overriding `haskellSrc2nix`
This commit is contained in:
commit
ecabdfd12f
@ -162,7 +162,7 @@ in package-set { inherit pkgs stdenv callPackage; } self // {
|
|||||||
filter = path: type:
|
filter = path: type:
|
||||||
pkgs.lib.hasSuffix "${name}.cabal" path ||
|
pkgs.lib.hasSuffix "${name}.cabal" path ||
|
||||||
baseNameOf path == "package.yaml";
|
baseNameOf path == "package.yaml";
|
||||||
expr = haskellSrc2nix {
|
expr = self.haskellSrc2nix {
|
||||||
inherit name;
|
inherit name;
|
||||||
src = if pkgs.lib.canCleanSource src
|
src = if pkgs.lib.canCleanSource src
|
||||||
then pkgs.lib.cleanSourceWith { inherit src filter; }
|
then pkgs.lib.cleanSourceWith { inherit src filter; }
|
||||||
|
Loading…
Reference in New Issue
Block a user