nixpkgs/pkgs/tools/compression/lzip/lzip-setup-hook.sh

6 lines
110 B
Bash
Raw Normal View History

2017-12-04 19:08:11 +00:00
lzipUnpackCmdHook() {
[[ "$1" = *.tar.lz ]] && tar --lzip -xf "$1"
}
unpackCmdHooks+=(lzipUnpackCmdHook)