@@ -7,7 +7,7 @@ module Distribution.Nixpkgs.Haskell.Derivation
77 ( Derivation, pkgid, revision, src, isLibrary, isExecutable
88 , extraFunctionArgs, libraryDepends, executableDepends, testDepends, configureFlags
99 , cabalFlags, runHaddock, jailbreak, doCheck, testTarget, hyperlinkSource, enableSplitObjs
10− , phaseOverrides, editedCabalFile, metaSection
10+ , enableLibraryProfiling, enableExecutableProfiling, phaseOverrides, editedCabalFile, metaSection
1111 , dependencies
1212 )
1313 where
@@ -33,26 +33,28 @@ import Language.Nix
3333-- 'PackageDescription' from Cabal.
3434
3535data Derivation = MkDerivation
36− { _pkgid :: PackageIdentifier
37− , _revision :: Int
38− , _src :: DerivationSource
39− , _isLibrary :: Bool
40− , _isExecutable :: Bool
41− , _extraFunctionArgs :: Set Identifier
42− , _libraryDepends :: BuildInfo
43− , _executableDepends :: BuildInfo
44− , _testDepends :: BuildInfo
45− , _configureFlags :: Set String
46− , _cabalFlags :: FlagAssignment
47− , _runHaddock :: Bool
48− , _jailbreak :: Bool
49− , _doCheck :: Bool
50− , _testTarget :: String
51− , _hyperlinkSource :: Bool
52− , _enableSplitObjs :: Bool
53− , _phaseOverrides :: String
54− , _editedCabalFile :: String
55− , _metaSection :: Meta
36+ { _pkgid :: PackageIdentifier
37+ , _revision :: Int
38+ , _src :: DerivationSource
39+ , _isLibrary :: Bool
40+ , _isExecutable :: Bool
41+ , _extraFunctionArgs :: Set Identifier
42+ , _libraryDepends :: BuildInfo
43+ , _executableDepends :: BuildInfo
44+ , _testDepends :: BuildInfo
45+ , _configureFlags :: Set String
46+ , _cabalFlags :: FlagAssignment
47+ , _runHaddock :: Bool
48+ , _jailbreak :: Bool
49+ , _doCheck :: Bool
50+ , _testTarget :: String
51+ , _hyperlinkSource :: Bool
52+ , _enableLibraryProfiling :: Bool
53+ , _enableExecutableProfiling :: Bool
54+ , _enableSplitObjs :: Bool
55+ , _phaseOverrides :: String
56+ , _editedCabalFile :: String
57+ , _metaSection :: Meta
5658 }
5759 deriving (Show, Eq, Generic)
5860
@@ -74,6 +76,8 @@ instance Default Derivation where
7476 , _doCheck = error "undefined Derivation.doCheck"
7577 , _testTarget = error "undefined Derivation.testTarget"
7678 , _hyperlinkSource = error "undefined Derivation.hyperlinkSource"
79+ , _enableLibraryProfiling = error "undefined Derivation.enableLibraryProfiling"
80+ , _enableExecutableProfiling = error "undefined Derivation.enableExecutableProfiling"
7781 , _enableSplitObjs = error "undefined Derivation.enableSplitObjs"
7882 , _phaseOverrides = error "undefined Derivation.phaseOverrides"
7983 , _editedCabalFile = error "undefined Derivation.editedCabalFile"
@@ -104,6 +108,8 @@ instance Pretty Derivation where
104108 , onlyIf (_libraryDepends /= mempty) $ pPrintBuildInfo "library" _libraryDepends
105109 , onlyIf (_executableDepends /= mempty) $ pPrintBuildInfo "executable" _executableDepends
106110 , onlyIf (_testDepends /= mempty) $ pPrintBuildInfo "test" _testDepends
111+ , boolattr "enableLibraryProfiling" _enableLibraryProfiling _enableLibraryProfiling
112+ , boolattr "enableExecutableProfiling" _enableExecutableProfiling _enableExecutableProfiling
107113 , boolattr "enableSplitObjs" (not _enableSplitObjs) _enableSplitObjs
108114 , boolattr "doHaddock" (not _runHaddock) _runHaddock
109115 , boolattr "jailbreak" _jailbreak _jailbreak