joplin-desktop: Add a desktop Item for joplin-desktop

This commit is contained in:
Scriptkiddi 2020-01-21 14:35:39 +01:00 committed by Lassulus
parent e99ec699a4
commit 05e661f665

View File

@ -1,8 +1,14 @@
{ appimageTools, fetchurl, lib, gsettings-desktop-schemas, gtk3 }: { appimageTools, fetchurl, lib, gsettings-desktop-schemas, gtk3, makeDesktopItem }:
let let
pname = "joplin-desktop"; pname = "joplin-desktop";
version = "1.0.177"; version = "1.0.177";
desktopItem = makeDesktopItem {
name = "Joplin";
exec = "joplin-desktop";
type = "Application";
desktopName = "Joplin";
};
in appimageTools.wrapType2 rec { in appimageTools.wrapType2 rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
@ -18,7 +24,12 @@ in appimageTools.wrapType2 rec {
multiPkgs = null; # no 32bit needed multiPkgs = null; # no 32bit needed
extraPkgs = appimageTools.defaultFhsEnvArgs.multiPkgs; extraPkgs = appimageTools.defaultFhsEnvArgs.multiPkgs;
extraInstallCommands = "mv $out/bin/{${name},${pname}}"; extraInstallCommands = ''
mkdir -p $out/share/applications
ln -s ${desktopItem}/share/applications/* $out/share/applications
mv $out/bin/{${name},${pname}}
'';
meta = with lib; { meta = with lib; {
description = "An open source note taking and to-do application with synchronisation capabilities"; description = "An open source note taking and to-do application with synchronisation capabilities";