Merge pull request #118468 from plabadens/master
free42: add desktop item
This commit is contained in:
commit
71433ce823
|
@ -1,6 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, makeDesktopItem
|
||||||
|
, copyDesktopItems
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, gtk3
|
, gtk3
|
||||||
, alsaLib
|
, alsaLib
|
||||||
|
@ -17,7 +19,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-Htk2NHgYVL622URx67BUtounAUopLTahaSqfAqd3+ZI=";
|
sha256 = "sha256-Htk2NHgYVL622URx67BUtounAUopLTahaSqfAqd3+ZI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ copyDesktopItems pkg-config ];
|
||||||
buildInputs = [ gtk3 alsaLib ];
|
buildInputs = [ gtk3 alsaLib ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -55,6 +57,29 @@ stdenv.mkDerivation rec {
|
||||||
runHook postInstall
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/thomasokken/free42";
|
homepage = "https://github.com/thomasokken/free42";
|
||||||
description = "A software clone of HP-42S Calculator";
|
description = "A software clone of HP-42S Calculator";
|
||||||
|
|
Loading…
Reference in New Issue