@@ -6,7 +6,7 @@
66module Distribution.Nixpkgs.Haskell.Derivation
77 ( Derivation, nullDerivation, pkgid, revision, src, subpath, isLibrary, isExecutable
88 , extraFunctionArgs, libraryDepends, executableDepends, testDepends, configureFlags
9− , cabalFlags, runHaddock, runHpack, jailbreak, doCheck, testTarget, hyperlinkSource, enableSplitObjs
9+ , cabalFlags, runHaddock, jailbreak, doCheck, testTarget, hyperlinkSource, enableSplitObjs
1010 , enableLibraryProfiling, enableExecutableProfiling, phaseOverrides, editedCabalFile, metaSection
1111 , dependencies, setupDepends, benchmarkDepends, enableSeparateDataOutput
1212 )
@@ -59,7 +59,6 @@ data Derivation = MkDerivation
5959 , _editedCabalFile :: String
6060 , _enableSeparateDataOutput :: Bool
6161 , _metaSection :: Meta
62− , _runHpack :: Bool
6362 }
6463 deriving (Show, Eq, Generic)
6564
@@ -91,7 +90,6 @@ nullDerivation = MkDerivation
9190 , _editedCabalFile = error "undefined Derivation.editedCabalFile"
9291 , _enableSeparateDataOutput = error "undefined Derivation.enableSeparateDataOutput"
9392 , _metaSection = error "undefined Derivation.metaSection"
94− , _runHpack = error "undefined Derivation.runHpack"
9593 }
9694
9795makeLenses ''Derivation
@@ -132,7 +130,6 @@ instance Pretty Derivation where
132130 , boolattr "hyperlinkSource" (not _hyperlinkSource) _hyperlinkSource
133131 , onlyIf (not (null _phaseOverrides)) $ vcat ((map text . lines) _phaseOverrides)
134132 , pPrint _metaSection
135− , onlyIf _runHpack $ attr "preConfigure" $ string "${hpack}/bin/hpack"
136133 ]
137134 , rbrace
138135 ]
@@ -141,7 +138,6 @@ instance Pretty Derivation where
141138 inputs = Set.unions [ Set.map (view (localName . ident)) _extraFunctionArgs
142139 , setOf (dependencies . each . folded . localName . ident) drv
143140 , Set.fromList ["fetch" ++ derivKind _src | derivKind _src /= "" && not isHackagePackage]
144− , if _runHpack then Set.singleton "hpack" else Set.empty
145141 ]
146142
147143 renderedFlags = [ text "-f" <> (if enable then empty else char '-') <> text (unFlagName f) | (f, enable) <- _cabalFlags ]