diff --git a/pkgs/applications/graphics/imv/default.nix b/pkgs/applications/graphics/imv/default.nix index 3f6a27cbc76a..41fd114fdb5f 100644 --- a/pkgs/applications/graphics/imv/default.nix +++ b/pkgs/applications/graphics/imv/default.nix @@ -90,6 +90,12 @@ stdenv.mkDerivation rec { ] ++ windowSystems."${withWindowSystem}" ++ builtins.map (b: backends."${b}") withBackends; + postInstall = '' + # fix the executable path and install the desktop item + substituteInPlace ../files/imv.desktop --replace "imv %F" "$out/bin/imv %F" + install -Dm644 ../files/imv.desktop $out/share/applications/ + ''; + postFixup = lib.optionalString (withWindowSystem == "all") '' # The `bin/imv` script assumes imv-wayland or imv-x11 in PATH, # so we have to fix those to the binaries we installed into the /nix/store