mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
5 lines
122 B
Bash
5 lines
122 B
Bash
unpackCmdHooks+=(_tryUnzip)
|
|
_tryUnzip() {
|
|
if ! [[ "$curSrc" =~ \.zip$ ]]; then return 1; fi
|
|
unzip -qq "$curSrc"
|
|
}
|