about summary refs log tree commit diff
path: root/pkgs/by-name/lz/lzip/lzip-setup-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/lz/lzip/lzip-setup-hook.sh')
-rw-r--r--pkgs/by-name/lz/lzip/lzip-setup-hook.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/by-name/lz/lzip/lzip-setup-hook.sh b/pkgs/by-name/lz/lzip/lzip-setup-hook.sh
new file mode 100644
index 000000000000..092ad7737dd1
--- /dev/null
+++ b/pkgs/by-name/lz/lzip/lzip-setup-hook.sh
@@ -0,0 +1,5 @@
+lzipUnpackCmdHook() {
+    [[ "$1" = *.tar.lz ]] && tar --lzip -xf "$1"
+}
+
+unpackCmdHooks+=(lzipUnpackCmdHook)