flake: Monterey-compatible dyld cache extractor

This commit is contained in:
Michael Roitzsch
2021-10-25 12:03:12 +02:00
parent 563347a6db
commit 2deea7c208
3 changed files with 20 additions and 29 deletions
+3 -3
View File
@@ -51,11 +51,11 @@ sqlite: $(DB)
ACEXTRACT = $(shell nix build --no-write-lock-file .\#acextract && \
readlink result && rm result)/bin/acextract
DSCU = $(shell nix build --no-write-lock-file .\#dyld-shared-cache && \
readlink result && rm result)/bin/dyld_shared_cache_util
DSCEXTRACTOR = $(shell nix build --no-write-lock-file .\#dsc-extractor && \
readlink result && rm result)/bin/dyld-shared-cache-extractor
dyld: /System/Library/dyld/dyld_shared_cache_$(shell uname -m)
$(DSCU) -extract $@ $<
$(DSCEXTRACTOR) $< $@ > /dev/null
find $@ -type f -print0 | xargs -0 chmod a+x
XCODE = $(lastword $(wildcard /Applications/Xcode.app /Applications/Xcode-beta.app))