git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #118468 from plabadens/master
71433ceAnderson Torres
pkgs/applications/misc/free42/default.nix+26−1
@@ -1,6 +1,8 @@
1{ lib
1{ lib
2, stdenv
2, stdenv
3, fetchFromGitHub
3, fetchFromGitHub
4+, makeDesktopItem
5+, copyDesktopItems
4, pkg-config
6, pkg-config
5, gtk3
7, gtk3
6, alsaLib
8, alsaLib
@@ -17,7 +19,7 @@ stdenv.mkDerivation rec {
17 sha256 = "sha256-Htk2NHgYVL622URx67BUtounAUopLTahaSqfAqd3+ZI=";
19 sha256 = "sha256-Htk2NHgYVL622URx67BUtounAUopLTahaSqfAqd3+ZI=";
18 };
20 };
19
21
20− nativeBuildInputs = [ pkg-config ];
22+ nativeBuildInputs = [ copyDesktopItems pkg-config ];
21 buildInputs = [ gtk3 alsaLib ];
23 buildInputs = [ gtk3 alsaLib ];
22
24
23 postPatch = ''
25 postPatch = ''
@@ -55,6 +57,29 @@ stdenv.mkDerivation rec {
55 runHook postInstall
57 runHook postInstall
56 '';
58 '';
57
59
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+
58 meta = with lib; {
83 meta = with lib; {
59 homepage = "https://github.com/thomasokken/free42";
84 homepage = "https://github.com/thomasokken/free42";
60 description = "A software clone of HP-42S Calculator";
85 description = "A software clone of HP-42S Calculator";