about summary refs log tree commit diff
path: root/pkgs/applications/graphics/hdrmerge
diff options
context:
space:
mode:
authorD Anzorge <d.anzorge@gmail.com>2022-03-09 17:48:30 +0100
committerD Anzorge <d.anzorge@gmail.com>2022-03-09 18:52:39 +0100
commita4ac9a8b491ce942e4f3fce179992a80b4dc4ebe (patch)
tree7ac8b19eae8228b9b3a962cc5ea3e4d7653437b8 /pkgs/applications/graphics/hdrmerge
parentf02a438ae4eda778a14ea7b0c8fbc1fa89c05474 (diff)
hdrmerge: fix desktop entry file, install icons
Diffstat (limited to 'pkgs/applications/graphics/hdrmerge')
-rw-r--r--pkgs/applications/graphics/hdrmerge/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/hdrmerge/default.nix b/pkgs/applications/graphics/hdrmerge/default.nix
index 8f518c6c69bde..b0e346331bce8 100644
--- a/pkgs/applications/graphics/hdrmerge/default.nix
+++ b/pkgs/applications/graphics/hdrmerge/default.nix
@@ -55,17 +55,15 @@ mkDerivation rec {
       desktopName = "HDRMerge";
       comment = meta.description;
       icon = "hdrmerge";
-      exec = "@out@/bin/hdrmerge -F";
+      exec = "hdrmerge %F";
       categories = [ "Graphics" ];
       mimeTypes = [ "image/x-dcraw" "image/x-adobe-dng" ];
       terminal = false;
     })
   ];
 
-  postInstallPhase = ''
-    # Make a desktop item
-    mkdir -p $out/share/icons/ $out/share/applications/
-    cp ../data/images/logo.png $out/share/icons/hdrmerge.png
+  postInstall = ''
+    install -Dm444 ../data/images/icon.png $out/share/icons/hicolor/128x128/apps/hdrmerge.png
   '';
 
   meta = with lib; {