git.iko.soy/typeable/cabal2nix
on master help sign in
Replace reference to obsolete nix-prefetch-zip with nix-prefetch-url --unpack
commit88b8edb59ad0076f140e9948f233a43d6dfb842b authorKen Micklas <ken.micklas@obsidian.systems> dateThu 15 Mar 2018, 11:40 (9 years ago) parent7017487
1 file changed+1−1
src/Distribution/Nixpkgs/Fetch.hs+1−1
src/Distribution/Nixpkgs/Fetch.hs+1−1
@@ -105,7 +105,7 @@ fetch f = runMaybeT . fetchers where
105105 localArchive :: FilePath -> MaybeT IO (DerivationSource, a)
106106 localArchive path = do
107107 absolutePath <- liftIO $ canonicalizePath path
108− unpacked <- snd <$> fetchWith (False, "zip", []) (Source ("file://" ++ absolutePath) "" UnknownHash ".")
108+ unpacked <- snd <$> fetchWith (False, "url", ["--unpack"]) (Source ("file://" ++ absolutePath) "" UnknownHash ".")
109109 process (DerivationSource "" absolutePath "" "", unpacked)
110110
111111 process :: (DerivationSource, FilePath) -> MaybeT IO (DerivationSource, a)