From d43b5f6caf19e67903f7cc033426dbe7a7c82b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 8 Aug 2024 08:26:49 -0700 Subject: [PATCH] git-annex: fix executable path in desktop file --- pkgs/development/haskell-modules/configuration-common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 8bb919381824..9da4a424c23c 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -428,6 +428,12 @@ self: super: { # (this should be possible by also taking PREFIX into account). ./patches/git-annex-no-usr-prefix.patch ]; + + postPatch = '' + substituteInPlace Makefile \ + --replace-fail 'InstallDesktopFile $(PREFIX)/bin/git-annex' \ + 'InstallDesktopFile git-annex' + ''; }) super.git-annex; # Too strict bounds on servant