mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00

A setup hook script is provided to make possible to use `ripunzip` as a replacement of `unzip` in `fetchzip`.
7 lines
152 B
Bash
7 lines
152 B
Bash
unpackCmdHooks+=(_tryRipunzip)
|
|
_tryRipunzip() {
|
|
if ! [[ "$curSrc" =~ \.zip$ ]]; then return 1; fi
|
|
|
|
ripunzip unzip-file "$curSrc" 2> /dev/null
|
|
}
|