nixpkgs/pkgs/by-name/ri/ripunzip/setup-hook.sh
Thomas Gerbet 935d25c7e6 ripunzip: init at 1.1.0
A setup hook script is provided to make possible to use `ripunzip`
as a replacement of `unzip` in `fetchzip`.
2024-01-02 23:19:49 +01:00

7 lines
152 B
Bash

unpackCmdHooks+=(_tryRipunzip)
_tryRipunzip() {
if ! [[ "$curSrc" =~ \.zip$ ]]; then return 1; fi
ripunzip unzip-file "$curSrc" 2> /dev/null
}