Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
12 lines
462 B
Bash
12 lines
462 B
Bash
unpackCmdHooks+=(_tryUnzip)
|
|
_tryUnzip() {
|
|
if ! [[ "$curSrc" =~ \.zip$ ]]; then return 1; fi
|
|
|
|
# UTF-8 locale is needed for unzip on glibc to handle UTF-8 symbols:
|
|
# https://github.com/NixOS/nixpkgs/issues/176225#issuecomment-1146617263
|
|
# Otherwise unzip unpacks escaped file names as if '-U' options was in effect.
|
|
#
|
|
# Pick en_US.UTF-8 as most possible to be present on glibc, musl and darwin.
|
|
LANG=en_US.UTF-8 unzip -qq "$curSrc"
|
|
}
|