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
@@ -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
'';