about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2021-04-08 13:09:09 -0300
committerGitHub <noreply@github.com>2021-04-08 13:09:09 -0300
commit71433ce8231042719354c350aa833ba6209d5ca5 (patch)
treeec50739a2ad03e2ee12095d5546afdacaf345146
parent9803c87c07bb1bc10c6c21aa3d0fbf11368a166c (diff)
parent37515f7df0e7f5ef6c032ff1b817c17c7dc00752 (diff)
downloadnixlib-71433ce8231042719354c350aa833ba6209d5ca5.tar
nixlib-71433ce8231042719354c350aa833ba6209d5ca5.tar.gz
nixlib-71433ce8231042719354c350aa833ba6209d5ca5.tar.bz2
nixlib-71433ce8231042719354c350aa833ba6209d5ca5.tar.lz
nixlib-71433ce8231042719354c350aa833ba6209d5ca5.tar.xz
nixlib-71433ce8231042719354c350aa833ba6209d5ca5.tar.zst
nixlib-71433ce8231042719354c350aa833ba6209d5ca5.zip
Merge pull request #118468 from plabadens/master
free42: add desktop item
-rw-r--r--pkgs/applications/misc/free42/default.nix27
1 files changed, 26 insertions, 1 deletions
diff --git a/pkgs/applications/misc/free42/default.nix b/pkgs/applications/misc/free42/default.nix
index c48e151e8aeb..51867a6acee7 100644
--- a/pkgs/applications/misc/free42/default.nix
+++ b/pkgs/applications/misc/free42/default.nix
@@ -1,6 +1,8 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, makeDesktopItem
+, copyDesktopItems
 , pkg-config
 , gtk3
 , alsaLib
@@ -17,7 +19,7 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-Htk2NHgYVL622URx67BUtounAUopLTahaSqfAqd3+ZI=";
   };
 
-  nativeBuildInputs = [ pkg-config ];
+  nativeBuildInputs = [ copyDesktopItems pkg-config ];
   buildInputs = [ gtk3 alsaLib ];
 
   postPatch = ''
@@ -55,6 +57,29 @@ stdenv.mkDerivation rec {
     runHook postInstall
   '';
 
+  desktopItems = [
+    (makeDesktopItem {
+      name = "com.thomasokken.free42bin";
+      desktopName = "Free42Bin";
+      genericName = "Calculator";
+      exec = "free42bin";
+      type = "Application";
+      comment = meta.description;
+      categories = "Utility;Calculator;";
+      terminal = "false";
+    })
+    (makeDesktopItem {
+      name = "com.thomasokken.free42dec";
+      desktopName = "Free42Dec";
+      genericName = "Calculator";
+      exec = "free42dec";
+      type = "Application";
+      comment = meta.description;
+      categories = "Utility;Calculator;";
+      terminal = "false";
+    })
+  ];
+
   meta = with lib; {
     homepage = "https://github.com/thomasokken/free42";
     description = "A software clone of HP-42S Calculator";