desktop-file-utils: hardcode path to update-desktop-database

This is required for desktop-file-install to work correctly when used
directly from the Nix store (i.e. when not in $PATH).
This commit is contained in:
V 2021-03-06 17:46:05 +01:00
parent 02d88b1ff1
commit d290b2d733

View file

@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ glib libintl ];
postPatch = ''
substituteInPlace src/install.c \
--replace \"update-desktop-database\" \"$out/bin/update-desktop-database\"
'';
setupHook = ./setup-hook.sh;
meta = {