tests.haskell.setBuildTarget: prevent unnecessary rebuilds

This commit is contained in:
Philip Taron 2024-06-17 09:43:20 -07:00
parent 81c06bc609
commit 53f06894e1
No known key found for this signature in database

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