karabiner-elements: fix plist patching after latest update (#350045)

This commit is contained in:
Emily 2024-10-31 00:26:17 +00:00 committed by GitHub
commit 44cb05c5e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,9 +41,10 @@ stdenv.mkDerivation (finalAttrs: {
sourceRoot = ".";
postPatch = ''
for f in *.pkg/Library/Launch{Agents,Daemons}/*.plist; do
substituteInPlace $f \
--replace "/Library/" "$out/Library/"
shopt -s globstar
for f in *.pkg/Library/**/Launch{Agents,Daemons}/*.plist; do
substituteInPlace "$f" \
--replace-fail "/Library/" "$out/Library/"
done
'';