mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
5 lines
131 B
Bash
5 lines
131 B
Bash
unpackCmdHooks+=(_tryUnrar)
|
|
_tryUnrar() {
|
|
if ! [[ "$curSrc" =~ \.rar$ ]]; then return 1; fi
|
|
unrar x "$curSrc" >/dev/null
|
|
}
|