mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
Fix fetchzip for actuall zip files
This commit is contained in:
parent
59ec0f0e0d
commit
9ed097ab50
@ -12,7 +12,7 @@
|
|||||||
, url
|
, url
|
||||||
, ... } @ args:
|
, ... } @ args:
|
||||||
|
|
||||||
fetchurl ({
|
lib.overrideDerivation (fetchurl ({
|
||||||
name = args.name or (baseNameOf url);
|
name = args.name or (baseNameOf url);
|
||||||
|
|
||||||
recursiveHash = true;
|
recursiveHash = true;
|
||||||
@ -39,4 +39,6 @@ fetchurl ({
|
|||||||
mv $out/$fn/* "$out/"
|
mv $out/$fn/* "$out/"
|
||||||
rmdir "$out/$fn"
|
rmdir "$out/$fn"
|
||||||
'';
|
'';
|
||||||
} // args)
|
} // args))
|
||||||
|
# Hackety-hack: we actually need unzip hooks, too
|
||||||
|
(x: {nativeBuildInputs = x.nativeBuildInputs++ [unzip];})
|
||||||
|
Loading…
Reference in New Issue
Block a user