Cosmetic changes to the way postUnpack is rendered.
Closes https://github.com/NixOS/cabal2nix/pull/271.
commitff83d2d1913a1e4580dd0ff438b1833660854cb3
authorPeter Simons <simons@cryp.to>
dateTue 2 May 2017, 16:13 (9 years ago)
parent85a2076
src/Distribution/Nixpkgs/Haskell/Derivation.hs+1−4
@@ -153,7 +153,4 @@ instance Pretty Derivation where
153153 ]
154154 | otherwise = attr "src" $ text derivUrl
155155
156− postUnpack = doubleQuotes $ vcat
157− [ text "sourceRoot=\\${sourceRoot}/" <> text _subpath
158− , text "echo Source root reset to \\${sourceRoot}"
159− ]
156+ postUnpack = string $ "sourceRoot+=/" ++ _subpath ++ "; echo source root reset to $sourceRoot"