mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
karabiner-elements: fix plist patching after latest update
This commit is contained in:
parent
d26289ac86
commit
cfe3c23ad5
@ -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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user