nixpkgs/pkgs/tools/archivers/7zz/setup-hook.sh
2024-02-29 08:53:23 +01:00

6 lines
126 B
Bash

unpackCmdHooks+=(_tryUnpackDmg)
_tryUnpackDmg() {
if ! [[ "$curSrc" =~ \.dmg$ ]]; then return 1; fi
7zz x "$curSrc"
}