2023-05-24 13:37:59 +00:00
|
|
|
{ lib, appimageTools, fetchurl }:
|
|
|
|
|
|
|
|
let
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.0.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
pname = "lunatask";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://lunatask.app/download/Lunatask-${version}.AppImage";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-rRE7VE6Fugqbbv/fTIZGuWDQmTP1tRDiKrb6VcpsBjk=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
2023-10-09 19:29:22 +00:00
|
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
|
|
|
|
install -m 444 -D ${appimageContents}/${pname}.png $out/share/icons/hicolor/512x512/apps/${pname}.png
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
2023-05-24 13:37:59 +00:00
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "All-in-one encrypted todo list, notebook, habit and mood tracker, pomodoro timer, and journaling app";
|
2023-05-24 13:37:59 +00:00
|
|
|
longDescription = ''
|
|
|
|
Lunatask is an all-in-one encrypted todo list, notebook, habit and mood tracker, pomodoro timer, and journaling app. It remembers stuff for you and keeps track of your mental health.
|
|
|
|
'';
|
|
|
|
homepage = "https://lunatask.app";
|
|
|
|
downloadPage = "https://lunatask.app/download";
|
|
|
|
license = licenses.unfree;
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
maintainers = with maintainers; [ henkery ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "lunatask";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|