git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #118468 from plabadens/master

free42: add desktop item

commit71433ce8231042719354c350aa833ba6209d5ca5 authorAnderson Torres <torres.anderson.85@protonmail.com> dateThu 8 Apr 2021, 13:09 (6 years ago) parent9803c8737515f7
1 file changed+26−1
pkgs/applications/misc/free42/default.nix+26−1
pkgs/applications/misc/free42/default.nix+26−1
@@ -1,6 +1,8 @@
11{ lib
22, stdenv
33, fetchFromGitHub
4+, makeDesktopItem
5+, copyDesktopItems
46, pkg-config
57, gtk3
68, alsaLib
@@ -17,7 +19,7 @@ stdenv.mkDerivation rec {
1719 sha256 = "sha256-Htk2NHgYVL622URx67BUtounAUopLTahaSqfAqd3+ZI=";
1820 };
1921
20− nativeBuildInputs = [ pkg-config ];
22+ nativeBuildInputs = [ copyDesktopItems pkg-config ];
2123 buildInputs = [ gtk3 alsaLib ];
2224
2325 postPatch = ''
@@ -55,6 +57,29 @@ stdenv.mkDerivation rec {
5557 runHook postInstall
5658 '';
5759
60+ desktopItems = [
61+ (makeDesktopItem {
62+ name = "com.thomasokken.free42bin";
63+ desktopName = "Free42Bin";
64+ genericName = "Calculator";
65+ exec = "free42bin";
66+ type = "Application";
67+ comment = meta.description;
68+ categories = "Utility;Calculator;";
69+ terminal = "false";
70+ })
71+ (makeDesktopItem {
72+ name = "com.thomasokken.free42dec";
73+ desktopName = "Free42Dec";
74+ genericName = "Calculator";
75+ exec = "free42dec";
76+ type = "Application";
77+ comment = meta.description;
78+ categories = "Utility;Calculator;";
79+ terminal = "false";
80+ })
81+ ];
82+
5883 meta = with lib; {
5984 homepage = "https://github.com/thomasokken/free42";
6085 description = "A software clone of HP-42S Calculator";