From cb504bdf7e4c23bfcda2021c3c6873596d160426 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Mon, 26 Aug 2024 13:54:30 +0200 Subject: [PATCH] pop-launcher: prefer --replace-fail for substituteInPlace --- pkgs/applications/misc/pop-launcher/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/pop-launcher/default.nix b/pkgs/applications/misc/pop-launcher/default.nix index b8e614485a29..4f2a6e382fd3 100644 --- a/pkgs/applications/misc/pop-launcher/default.nix +++ b/pkgs/applications/misc/pop-launcher/default.nix @@ -18,15 +18,15 @@ rustPlatform.buildRustPackage rec { postPatch = '' substituteInPlace src/lib.rs \ - --replace '/usr/lib/pop-launcher' "$out/share/pop-launcher" + --replace-fail '/usr/lib/pop-launcher' "$out/share/pop-launcher" substituteInPlace plugins/src/scripts/mod.rs \ - --replace '/usr/lib/pop-launcher' "$out/share/pop-launcher" + --replace-fail '/usr/lib/pop-launcher' "$out/share/pop-launcher" substituteInPlace plugins/src/calc/mod.rs \ - --replace 'Command::new("qalc")' 'Command::new("${libqalculate}/bin/qalc")' + --replace-fail 'Command::new("qalc")' 'Command::new("${libqalculate}/bin/qalc")' substituteInPlace plugins/src/find/mod.rs \ - --replace 'spawn("fd")' 'spawn("${fd}/bin/fd")' + --replace-fail 'spawn("fd")' 'spawn("${fd}/bin/fd")' substituteInPlace plugins/src/terminal/mod.rs \ - --replace '/usr/bin/gnome-terminal' 'gnome-terminal' + --replace-fail '/usr/bin/gnome-terminal' 'gnome-terminal' ''; cargoHash = "sha256-cTvrq0fH057UIx/O9u8zHMsg+psMGg1q9klV5OMxtok=";