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:
parent
02d88b1ff1
commit
d290b2d733
1 changed files with 5 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue