|
6 | 6 | module Distribution.Nixpkgs.Haskell.Derivation |
7 | 7 | ( Derivation, nullDerivation, pkgid, revision, src, subpath, isLibrary, isExecutable |
8 | 8 | , extraFunctionArgs, libraryDepends, executableDepends, testDepends, configureFlags |
9 | | - , cabalFlags, runHaddock, jailbreak, doCheck, doBenchmark, testTarget, hyperlinkSource |
| 9 | + , cabalFlags, runHaddock, jailbreak, doCheck, doBenchmark, testTargets, hyperlinkSource |
10 | 10 | , enableLibraryProfiling, enableExecutableProfiling, phaseOverrides, editedCabalFile, metaSection |
11 | 11 | , dependencies, setupDepends, benchmarkDepends, enableSeparateDataOutput, extraAttributes |
12 | 12 | ) |
@@ -56,7 +56,7 @@ data Derivation = MkDerivation |
56 | 56 | , _jailbreak :: Bool |
57 | 57 | , _doCheck :: Bool |
58 | 58 | , _doBenchmark :: Bool |
59 | | - , _testTarget :: String |
| 59 | + , _testTargets :: [String] |
60 | 60 | , _hyperlinkSource :: Bool |
61 | 61 | , _enableLibraryProfiling :: Bool |
62 | 62 | , _enableExecutableProfiling :: Bool |
@@ -88,7 +88,7 @@ nullDerivation = MkDerivation |
88 | 88 | , _jailbreak = error "undefined Derivation.jailbreak" |
89 | 89 | , _doCheck = error "undefined Derivation.doCheck" |
90 | 90 | , _doBenchmark = error "undefined Derivation.doBenchmark" |
91 | | - , _testTarget = error "undefined Derivation.testTarget" |
| 91 | + , _testTargets = error "undefined Derivation.testTargets" |
92 | 92 | , _hyperlinkSource = error "undefined Derivation.hyperlinkSource" |
93 | 93 | , _enableLibraryProfiling = error "undefined Derivation.enableLibraryProfiling" |
94 | 94 | , _enableExecutableProfiling = error "undefined Derivation.enableExecutableProfiling" |
@@ -132,7 +132,7 @@ instance Pretty Derivation where |
132 | 132 | , boolattr "jailbreak" _jailbreak _jailbreak |
133 | 133 | , boolattr "doCheck" (not _doCheck) _doCheck |
134 | 134 | , boolattr "doBenchmark" _doBenchmark _doBenchmark |
135 | | - , onlyIf (not (null _testTarget)) $ attr "testTarget" $ string _testTarget |
| 135 | + , onlyIf (not (null _testTargets)) $ listattr "testTargets" empty (map show _testTargets) |
136 | 136 | , boolattr "hyperlinkSource" (not _hyperlinkSource) _hyperlinkSource |
137 | 137 | , onlyIf (not (null _phaseOverrides)) $ vcat ((map text . lines) _phaseOverrides) |
138 | 138 | , pPrint _metaSection |
|
0 commit comments