Merge pull request #402 from qrilka/quote-src
Put file src attribute in quotes to allow more paths
commit45bf247c277a1b360688026ed6bec12ebeb6206b
authorPeter Simons <simons@cryp.to>
dateTue 29 Jan 2019, 17:18 (8 years ago)
parentda47f404670c7e
src/Distribution/Nixpkgs/Fetch.hs+1−1
@@ -78,7 +78,7 @@ instance PP.Pretty DerivationSource where
7878 let isHackagePackage = "mirror://hackage/" `L.isPrefixOf` derivUrl
7979 fetched = derivKind /= ""
8080 in if isHackagePackage then attr "sha256" $ string derivHash
81− else if not fetched then attr "src" $ text derivUrl
81+ else if not fetched then attr "src" $ string derivUrl
8282 else vcat
8383 [ text "src" <+> equals <+> text ("fetch" ++ derivKind) <+> lbrace
8484 , nest 2 $ vcat