Merge pull request #289900 from afh/undmg-apfs

7zz: add setup hook script to unpack DMG files
This commit is contained in:
éclairevoyant 2024-03-02 02:59:19 +00:00 committed by GitHub
commit aa94fc78b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -99,6 +99,8 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = lib.optionals useUasm [ uasm ]; nativeBuildInputs = lib.optionals useUasm [ uasm ];
setupHook = ./setup-hook.sh;
enableParallelBuilding = true; enableParallelBuilding = true;
preBuild = "cd CPP/7zip/Bundles/Alone2"; preBuild = "cd CPP/7zip/Bundles/Alone2";

View file

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