From 9ed097ab50201f75a6b81a3d0b5c74ad4b163f53 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 12 Dec 2014 15:16:57 +0300 Subject: Fix fetchzip for actuall zip files --- pkgs/build-support/fetchzip/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkgs/build-support/fetchzip') diff --git a/pkgs/build-support/fetchzip/default.nix b/pkgs/build-support/fetchzip/default.nix index 12fb69ba8ef..dd927ed8363 100644 --- a/pkgs/build-support/fetchzip/default.nix +++ b/pkgs/build-support/fetchzip/default.nix @@ -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];}) -- cgit 1.4.1