git.iko.soy/typeable/cabal2nix
on master help sign in
fetchWith: resolve https://github.com/NixOS/cabal2nix/issues/150

New versions of nix-prefetch-git print an additional line, saying: Commit date is 2015-01-15 21:41:08 +0100 We just ignore that information.

commit2c2864bafef32f1095cf1c3b71876b04a37c1796 authorPeter Simons <simons@cryp.to> dateFri 6 Mar 2015, 12:37 (12 years ago) parent230d6d3
1 file changed+1
src/Distribution/Nixpkgs/Fetch.hs+1
src/Distribution/Nixpkgs/Fetch.hs+1
@@ -118,6 +118,7 @@ fetchWith (supportsRev, kind, addArgs) source = do
118118
119119 processOutputWithRev :: [String] -> IO (DerivationSource, FilePath)
120120 processOutputWithRev [rev,hash,path] = return (DerivationSource kind (sourceUrl source) (extractRevision rev) hash, path)
121+ processOutputWithRev [rev,_,hash,path] = processOutputWithRev [rev,hash,path]
121122 processOutputWithRev out = unexpectedOutput out
122123
123124 extractRevision :: String -> String