From 8ee37cc3dddd3c7beb43bf502df8f91b7bd63ce0 Mon Sep 17 00:00:00 2001 From: eleanor-k Date: Sat, 30 Nov 2024 16:49:37 -0700 Subject: [PATCH] trezor-suite: Remove deprecated use of `--replace` The install script uses `substituteInPlace` with the deprecated `--replace` option. Since it must modify the `Exec` line of the desktop file to launch, the option has been changed to `--replace-fail`. --- pkgs/by-name/tr/trezor-suite/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/tr/trezor-suite/package.nix b/pkgs/by-name/tr/trezor-suite/package.nix index 95358e73f9f6..91e02485833a 100644 --- a/pkgs/by-name/tr/trezor-suite/package.nix +++ b/pkgs/by-name/tr/trezor-suite/package.nix @@ -42,7 +42,7 @@ appimageTools.wrapType2 rec { install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop install -m 444 -D ${appimageContents}/resources/images/desktop/512x512.png $out/share/icons/hicolor/512x512/apps/${pname}.png substituteInPlace $out/share/applications/${pname}.desktop \ - --replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname}' + --replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=${pname}' # symlink system binaries instead bundled ones mkdir -p $out/share/${pname}/resources/bin/{bridge,tor}