@@ -7,7 +7,7 @@
7module Distribution.Nixpkgs.Haskell.Derivation
7module Distribution.Nixpkgs.Haskell.Derivation
8 ( Derivation, nullDerivation, pkgid, revision, src, subpath, isLibrary, isExecutable
8 ( Derivation, nullDerivation, pkgid, revision, src, subpath, isLibrary, isExecutable
9 , extraFunctionArgs, libraryDepends, executableDepends, testDepends, configureFlags
9 , extraFunctionArgs, libraryDepends, executableDepends, testDepends, configureFlags
10− , cabalFlags, runHaddock, jailbreak, doCheck, testTarget, hyperlinkSource, enableSplitObjs
10+ , cabalFlags, runHaddock, jailbreak, doCheck, doBenchmark, testTarget, hyperlinkSource, enableSplitObjs
11 , enableLibraryProfiling, enableExecutableProfiling, phaseOverrides, editedCabalFile, metaSection
11 , enableLibraryProfiling, enableExecutableProfiling, phaseOverrides, editedCabalFile, metaSection
12 , dependencies, setupDepends, benchmarkDepends, enableSeparateDataOutput
12 , dependencies, setupDepends, benchmarkDepends, enableSeparateDataOutput
@@ -55,6 +55,7 @@ data Derivation = MkDerivation
55 , _runHaddock :: Bool
55 , _runHaddock :: Bool
56 , _jailbreak :: Bool
56 , _jailbreak :: Bool
57 , _doCheck :: Bool
57 , _doCheck :: Bool
58+ , _doBenchmark :: Bool
58 , _testTarget :: String
59 , _testTarget :: String
59 , _hyperlinkSource :: Bool
60 , _hyperlinkSource :: Bool
60 , _enableLibraryProfiling :: Bool
61 , _enableLibraryProfiling :: Bool
@@ -86,6 +87,7 @@ nullDerivation = MkDerivation
86 , _runHaddock = error "undefined Derivation.runHaddock"
87 , _runHaddock = error "undefined Derivation.runHaddock"
87 , _jailbreak = error "undefined Derivation.jailbreak"
88 , _jailbreak = error "undefined Derivation.jailbreak"
88 , _doCheck = error "undefined Derivation.doCheck"
89 , _doCheck = error "undefined Derivation.doCheck"
90+ , _doBenchmark = error "undefined Derivation.doBenchmark"
89 , _testTarget = error "undefined Derivation.testTarget"
91 , _testTarget = error "undefined Derivation.testTarget"
90 , _hyperlinkSource = error "undefined Derivation.hyperlinkSource"
92 , _hyperlinkSource = error "undefined Derivation.hyperlinkSource"
91 , _enableLibraryProfiling = error "undefined Derivation.enableLibraryProfiling"
93 , _enableLibraryProfiling = error "undefined Derivation.enableLibraryProfiling"
@@ -131,6 +133,7 @@ instance Pretty Derivation where
131 , boolattr "doHaddock" (not _runHaddock) _runHaddock
133 , boolattr "doHaddock" (not _runHaddock) _runHaddock
132 , boolattr "jailbreak" _jailbreak _jailbreak
134 , boolattr "jailbreak" _jailbreak _jailbreak
133 , boolattr "doCheck" (not _doCheck) _doCheck
135 , boolattr "doCheck" (not _doCheck) _doCheck
136+ , boolattr "doBenchmark" _doBenchmark _doBenchmark
134 , onlyIf (not (null _testTarget)) $ attr "testTarget" $ string _testTarget
137 , onlyIf (not (null _testTarget)) $ attr "testTarget" $ string _testTarget
135 , boolattr "hyperlinkSource" (not _hyperlinkSource) _hyperlinkSource
138 , boolattr "hyperlinkSource" (not _hyperlinkSource) _hyperlinkSource
136 , onlyIf (not (null _phaseOverrides)) $ vcat ((map text . lines) _phaseOverrides)
139 , onlyIf (not (null _phaseOverrides)) $ vcat ((map text . lines) _phaseOverrides)