mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
935d25c7e6
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
|
|
}
|