2023-04-14 17:06:17 +02:00
|
|
|
{ lib, appimageTools, fetchurl }:
|
|
|
|
|
|
|
|
let
|
2023-11-03 19:10:35 +01:00
|
|
|
version = "1.7.8";
|
2023-04-14 17:06:17 +02:00
|
|
|
pname = "lunatask";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://lunatask.app/download/Lunatask-${version}.AppImage";
|
2023-11-03 19:10:35 +01:00
|
|
|
sha256 = "sha256-DhTWD9uL7zKWiRfeLYKxPtmAy1yR20wjlVA+N33YgpQ=";
|
2023-04-14 17:06:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
};
|
|
|
|
|
2023-11-03 19:10:35 +01:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 rec {
|
2023-04-14 17:06:17 +02:00
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
2023-09-27 22:34:40 +02:00
|
|
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
|
|
|
|
|
|
|
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-04-14 17:06:17 +02:00
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An all-in-one encrypted todo list, notebook, habit and mood tracker, pomodoro timer, and journaling app";
|
|
|
|
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-11 03:19:15 +01:00
|
|
|
mainProgram = "lunatask";
|
2023-04-14 17:06:17 +02:00
|
|
|
};
|
|
|
|
}
|