From cfe3c23ad5c61c6151ccb0879a467391121f0553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Sun, 20 Oct 2024 18:02:13 +0200 Subject: [PATCH] karabiner-elements: fix plist patching after latest update --- pkgs/os-specific/darwin/karabiner-elements/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/darwin/karabiner-elements/default.nix b/pkgs/os-specific/darwin/karabiner-elements/default.nix index 5239bc73b842..f7c02f9bf9fa 100644 --- a/pkgs/os-specific/darwin/karabiner-elements/default.nix +++ b/pkgs/os-specific/darwin/karabiner-elements/default.nix @@ -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 '';