Skip to content

Commit

Permalink
fetchzip: allow dropping unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Jan 12, 2024
1 parent cdbeb96 commit c28c56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/build-support/fetchzip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# (e.g. due to minor changes in the compression algorithm, or changes
# in timestamps).

{ lib, fetchurl, unzip, glibcLocalesUtf8 }:
{ lib, fetchurl, withUnzip ? true, unzip, glibcLocalesUtf8 }:

{ name ? "source"
, url ? ""
Expand Down Expand Up @@ -42,7 +42,7 @@ fetchurl ({
# Have to pull in glibcLocalesUtf8 for unzip in setup-hook.sh to handle
# UTF-8 aware locale:
# https://github.com/NixOS/nixpkgs/issues/176225#issuecomment-1146617263
nativeBuildInputs = [ unzip glibcLocalesUtf8 ] ++ nativeBuildInputs;
nativeBuildInputs = lib.optionals withUnzip [ unzip glibcLocalesUtf8 ] ++ nativeBuildInputs;

postFetch =
''
Expand Down

0 comments on commit c28c56f

Please sign in to comment.