From 77c19d463171d45ae22a4e1d5577c539707cdcf6 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Sat, 22 Jul 2023 16:09:24 +0200 Subject: [PATCH] testdisk-qt: fix desktop file paths Fixes #244419 (cherry picked from commit 72fbdc8ff9988206aa0132b843882615542d9e8f) --- pkgs/tools/system/testdisk/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/system/testdisk/default.nix b/pkgs/tools/system/testdisk/default.nix index 8bc290d6a673..9fe76c59052f 100644 --- a/pkgs/tools/system/testdisk/default.nix +++ b/pkgs/tools/system/testdisk/default.nix @@ -26,6 +26,11 @@ assert enableQt -> qwt != null; sha256 = "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"; }; + postPatch = '' + substituteInPlace linux/qphotorec.desktop \ + --replace "/usr" "$out" + ''; + enableParallelBuilding = true; buildInputs = [