karabiner-elements: fix plist patching after latest update

This commit is contained in:
Olivér Falvai 2024-10-20 18:02:13 +02:00
parent d26289ac86
commit cfe3c23ad5
No known key found for this signature in database

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