Merge pull request #320572 from philiptaron/issue-301014/pkgs-test-haskell

tests.haskell: prevent unnecessary rebuilds
This commit is contained in:
maralorn 2024-06-19 13:32:52 +02:00 committed by GitHub
commit bfcf827136
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 2 deletions

View File

@ -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 ];

View File

@ -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 ];