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 = "."; sourceRoot = ".";
postPatch = '' postPatch = ''
for f in *.pkg/Library/Launch{Agents,Daemons}/*.plist; do shopt -s globstar
substituteInPlace $f \ for f in *.pkg/Library/**/Launch{Agents,Daemons}/*.plist; do
--replace "/Library/" "$out/Library/" substituteInPlace "$f" \
--replace-fail "/Library/" "$out/Library/"
done done
''; '';