Skip to content

Commit

Permalink
Merge pull request #320572 from philiptaron/issue-301014/pkgs-test-ha…
Browse files Browse the repository at this point in the history
…skell

tests.haskell: prevent unnecessary rebuilds
  • Loading branch information
maralorn authored Jun 19, 2024
2 parents 219ca58 + 53f0689 commit bfcf827
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pkgs/test/haskell/cabalSdist/local/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
mkDerivation {
pname = "local";
version = "0.1.0.0";
src = ./.;
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./app
./CHANGELOG.md
./local.cabal
];
};
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [ base ];
Expand Down
10 changes: 9 additions & 1 deletion pkgs/test/haskell/setBuildTarget/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ let
mkDerivation {
pname = "haskell-setBuildTarget";
version = "0.1.0.0";
src = ./.;
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./haskell-setBuildTarget.cabal
./Bar.hs
./Foo.hs
./Setup.hs
];
};
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [ base ];
Expand Down

0 comments on commit bfcf827

Please sign in to comment.