Skip to content

Commit a1a1cdf

Browse files
committed
Use cabal.project.freeze if available
Currently callCabalProjectToNix does not copy `cabal.project.freeze` from source directory, leading to different build plans when building components with nix and when building project with `cabal new-build` inside `nix-shell`. This behavior is undesired, so this commits fixes it.
1 parent 242f38d commit a1a1cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/call-cabal-project-to-nix.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let
3535
inherit src;
3636
filter = path: type:
3737
type == "directory" ||
38-
pkgs.lib.any (i: (pkgs.lib.hasSuffix i path)) [ ".project" ".cabal" "package.yaml" ]; }
38+
pkgs.lib.any (i: (pkgs.lib.hasSuffix i path)) [ ".project" ".cabal" ".freeze" "package.yaml" ]; }
3939
else src;
4040

4141
# Using origSrcSubDir bypasses any cleanSourceWith so that it will work when

0 commit comments

Comments
 (0)