File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 15
15
project = haskell-nix . cabalProject' {
16
16
inherit src ;
17
17
cabalProjectLocal = builtins . readFile ../cabal.project.local ;
18
- # When haskell.nix has come from the store (e.g. on hydra) we need to provide
19
- # a suitable mock of the cleaned source with a .git dir.
20
- modules = ( optional ( ! ( src ? origSrc && __pathExists ( src . origSrc + "/.git" ) ) ) {
18
+ # Mock the .git dir to avoid rebuilding on every commit.
19
+ modules = [ {
21
20
packages . githash-test . src =
22
21
rec {
23
22
origSrc = evalPackages . runCommand "githash-test-src" { nativeBuildInputs = [ evalPackages . gitReallyMinimal ] ; } ''
32
31
origSrcSubDir = origSrc + origSubDir ;
33
32
outPath = origSrcSubDir ;
34
33
} ;
35
- } ) ++ [ {
36
34
packages . githash-test . components . exes . githash-test . build-tools = mkForce [ git ] ;
37
35
} ] ;
38
36
inherit compiler-nix-name evalPackages ;
You can’t perform that action at this time.
0 commit comments