mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +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"
|
|
}
|