Fix fetchzip for actuall zip files

This commit is contained in:
Michael Raskin 2014-12-12 15:16:57 +03:00
parent 59ec0f0e0d
commit 9ed097ab50

View File

@ -12,7 +12,7 @@
, url
, ... } @ args:
fetchurl ({
lib.overrideDerivation (fetchurl ({
name = args.name or (baseNameOf url);
recursiveHash = true;
@ -39,4 +39,6 @@ fetchurl ({
mv $out/$fn/* "$out/"
rmdir "$out/$fn"
'';
} // args)
} // args))
# Hackety-hack: we actually need unzip hooks, too
(x: {nativeBuildInputs = x.nativeBuildInputs++ [unzip];})