about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorRicardo M. Correia <rcorreia@wizy.org>2021-06-13 17:17:05 +0200
committerRicardo M. Correia <rcorreia@wizy.org>2021-06-14 00:32:05 +0200
commit54f77325e7ce7d86157e08c084c15cb68e7823c4 (patch)
tree50bdd0e497a0f1f990c089828cb9cc07edf3e4f1 /pkgs/applications/graphics
parentfa6c491d688582325f79240f0bca1b083f747055 (diff)
imv: install .desktop file
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/imv/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/imv/default.nix b/pkgs/applications/graphics/imv/default.nix
index 3f6a27cbc76ad..41fd114fdb5ff 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