depot/pkgs/by-name/lu/lunatask/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

47 lines
1.5 KiB
Nix

{
lib,
appimageTools,
fetchurl,
}:
let
version = "2.0.12";
pname = "lunatask";
src = fetchurl {
url = "https://lunatask.app/download/Lunatask-${version}.AppImage";
hash = "sha256-z1c3ACIRF8+iIy4ihEWqRDzalHyN5AvOdBxQG9sCXVs=";
};
appimageContents = appimageTools.extract {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
install -m 444 -D -t $out/share/applications ${appimageContents}/lunatask.desktop
install -m 444 -D -t $out/share/icons/hicolor/512x512/apps ${appimageContents}/lunatask.png
substituteInPlace $out/share/applications/lunatask.desktop \
--replace-fail 'Exec=AppRun' 'Exec=lunatask'
'';
passthru.updateScript = ./update.py;
meta = {
description = "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";
changelog = "https://lunatask.app/releases/${version}";
license = lib.licenses.unfree;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with lib.maintainers; [ zi3m5f ];
platforms = [ "x86_64-linux" ];
mainProgram = "lunatask";
};
}