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
2 changed files with 17 additions and 2 deletions
@@ -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 ];
+9 -1
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 ];