19
19
20
20
# We can easily select a different compiler when using cabal,
21
21
# but for stack we would need a different resolver to be used..
22
- cabalProj = ( cabalProject' projectArgs // { inherit compiler-nix-name ; } ) ;
22
+ cabalProj = ( cabalProject' ( projectArgs // { inherit compiler-nix-name ; } ) ) ;
23
23
stackProj = ( stackProject' projectArgs ) ;
24
24
25
25
exeExt = stdenv . hostPlatform . extensions . executable ;
@@ -85,11 +85,11 @@ in recurseIntoAttrs ({
85
85
${ concatStringsSep "\n " ( map ( project : ''
86
86
pkga_basedir="${ project . hsPkgs . pkga . coverageReport } /share/hpc/vanilla"
87
87
findFileExistsNonEmpty "$pkga_basedir/mix/pkga-0.1.0.0/" "PkgA.mix"
88
- dirExistsEmpty "$pkga_basedir/tix/pkga-0.1.0.0"
89
- dirExistsEmpty "$pkga_basedir/html/pkga-0.1.0.0"
88
+ dirExists "$pkga_basedir/tix/pkga-0.1.0.0"
89
+ dirExists "$pkga_basedir/html/pkga-0.1.0.0"
90
90
91
91
pkgb_basedir="${ project . hsPkgs . pkgb . coverageReport } /share/hpc/vanilla"
92
- testTix="$pkgb_basedir/tix/pkgb-0.1.0.0/tests ${ exeExt } /tests${ exeExt } .tix"
92
+ testTix="$pkgb_basedir/tix/pkgb-test-tests- 0.1.0.0-check /tests${ exeExt } .tix"
93
93
libTix="$pkgb_basedir/tix/pkgb-0.1.0.0/pkgb-0.1.0.0.tix"
94
94
fileExistsNonEmpty "$testTix"
95
95
fileExistsNonEmpty "$libTix"
@@ -116,9 +116,9 @@ in recurseIntoAttrs ({
116
116
dirExists "$project_basedir/tix/pkga-0.1.0.0"
117
117
dirExists "$project_basedir/tix/pkgb-0.1.0.0"
118
118
fileExistsNonEmpty "$project_basedir/tix/pkgb-0.1.0.0/pkgb-0.1.0.0.tix"
119
- dirExists "$project_basedir/tix/pkgb-0.1.0.0/tests ${ exeExt } "
120
- fileExistsNonEmpty "$project_basedir/tix/pkgb-0.1.0.0/tests ${ exeExt } /tests${ exeExt } .tix"
121
- '' ) ( optional ( compiler-nix-name == "ghc865" ) stackProj ) ) }
119
+ dirExists "$project_basedir/tix/pkgb-test-tests- 0.1.0.0-check "
120
+ fileExistsNonEmpty "$project_basedir/tix/pkgb-test-tests- 0.1.0.0-check /tests${ exeExt } .tix"
121
+ '' ) ( [ cabalProj ] ++ optional ( compiler-nix-name == "ghc865" ) stackProj ) ) }
122
122
123
123
touch $out
124
124
'' ;
0 commit comments