joplin-desktop: Add a desktop Item for joplin-desktop
This commit is contained in:
parent
e99ec699a4
commit
05e661f665
@ -1,8 +1,14 @@
|
||||
{ appimageTools, fetchurl, lib, gsettings-desktop-schemas, gtk3 }:
|
||||
{ appimageTools, fetchurl, lib, gsettings-desktop-schemas, gtk3, makeDesktopItem }:
|
||||
|
||||
let
|
||||
pname = "joplin-desktop";
|
||||
version = "1.0.177";
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "Joplin";
|
||||
exec = "joplin-desktop";
|
||||
type = "Application";
|
||||
desktopName = "Joplin";
|
||||
};
|
||||
in appimageTools.wrapType2 rec {
|
||||
name = "${pname}-${version}";
|
||||
src = fetchurl {
|
||||
@ -18,7 +24,12 @@ in appimageTools.wrapType2 rec {
|
||||
|
||||
multiPkgs = null; # no 32bit needed
|
||||
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; {
|
||||
description = "An open source note taking and to-do application with synchronisation capabilities";
|
||||
|
Loading…
Reference in New Issue
Block a user