mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
fetchzip: allow dropping unzip
This commit is contained in:
parent
cdbeb9666c
commit
c28c56f379
@ -5,7 +5,7 @@
|
|||||||
# (e.g. due to minor changes in the compression algorithm, or changes
|
# (e.g. due to minor changes in the compression algorithm, or changes
|
||||||
# in timestamps).
|
# in timestamps).
|
||||||
|
|
||||||
{ lib, fetchurl, unzip, glibcLocalesUtf8 }:
|
{ lib, fetchurl, withUnzip ? true, unzip, glibcLocalesUtf8 }:
|
||||||
|
|
||||||
{ name ? "source"
|
{ name ? "source"
|
||||||
, url ? ""
|
, url ? ""
|
||||||
@ -42,7 +42,7 @@ fetchurl ({
|
|||||||
# Have to pull in glibcLocalesUtf8 for unzip in setup-hook.sh to handle
|
# Have to pull in glibcLocalesUtf8 for unzip in setup-hook.sh to handle
|
||||||
# UTF-8 aware locale:
|
# UTF-8 aware locale:
|
||||||
# https://github.com/NixOS/nixpkgs/issues/176225#issuecomment-1146617263
|
# https://github.com/NixOS/nixpkgs/issues/176225#issuecomment-1146617263
|
||||||
nativeBuildInputs = [ unzip glibcLocalesUtf8 ] ++ nativeBuildInputs;
|
nativeBuildInputs = lib.optionals withUnzip [ unzip glibcLocalesUtf8 ] ++ nativeBuildInputs;
|
||||||
|
|
||||||
postFetch =
|
postFetch =
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user