git.iko.soy/typeable/cabal2nix
on master help sign in
distribution-nixpkgs: fix readNixpkgSet with non-absolute repository paths
commit48e0804d5b410bf3c31da33670f577f1e7f5052a authorPeter Simons <simons@cryp.to> dateMon 14 Sep 2015, 15:55 (11 years ago) parent1f10a62
1 file changed+1−1
distribution-nixpkgs/src/Distribution/Nixpkgs/PackageMap.hs+1−1
distribution-nixpkgs/src/Distribution/Nixpkgs/PackageMap.hs+1−1
@@ -26,7 +26,7 @@ readNixpkgPackageMap nixpkgs attrpath = fmap identifierSet2PackageMap (readNixpk
2626readNixpkgSet :: FilePath -> Maybe Path -> IO (Set String)
2727readNixpkgSet nixpkgs attrpath = do
2828 let extraArgs = maybe [] (\p -> ["-A", render (pPrint p)]) attrpath
29− (_, Just h, _, _) <- createProcess (proc "nix-env" (["-qaP", "--json", "-f"++nixpkgs] ++ extraArgs))
29+ (_, Just h, _, _) <- createProcess (proc "nix-env" (["-qaP", "--json", "-f", nixpkgs] ++ extraArgs))
3030 { std_out = CreatePipe, env = Nothing } -- TODO: ensure that overrides don't screw up our results
3131 buf <- LBS.hGetContents h
3232 let pkgmap :: Either String (Map String JSON.Object)