Unverified Commit 8f8d949e authored by Johannes Jöns's avatar Johannes Jöns Committed by GitHub
Browse files

pop-launcher: prefer --replace-fail for substituteInPlace (#337457)

parents f6727c3f 91122d6d
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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=";
+0 −2
Original line number Diff line number Diff line
@@ -32786,8 +32786,6 @@ with pkgs;
  ponymix = callPackage ../applications/audio/ponymix { };
  pop-launcher = callPackage ../applications/misc/pop-launcher { };
  pothos = libsForQt5.callPackage ../applications/radio/pothos { };
  potrace = callPackage ../applications/graphics/potrace { };