Loading pkgs/applications/misc/lunatask/default.nix +3 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ appimageTools.wrapType2 rec { --replace 'Exec=AppRun' 'Exec=${pname}' ''; passthru.updateScript = ./update.py; meta = with lib; { description = "All-in-one encrypted todo list, notebook, habit and mood tracker, pomodoro timer, and journaling app"; longDescription = '' Loading @@ -31,6 +33,7 @@ appimageTools.wrapType2 rec { ''; homepage = "https://lunatask.app"; downloadPage = "https://lunatask.app/download"; changelog = "https://lunatask.app/releases/${version}"; license = licenses.unfree; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; maintainers = with maintainers; [ henkery ]; Loading pkgs/applications/misc/lunatask/update.py 0 → 100755 +18 −0 Original line number Diff line number Diff line #!/usr/bin/env nix-shell #!nix-shell -i python --packages python3 python3Packages.feedparser common-updater-scripts """ Parses the latest version from atom feed and runs update-source-version """ import subprocess import feedparser URL = "https://lunatask.app/releases/atom.xml" feed = feedparser.parse(URL) latest_entry = feed.entries[0] latest_version = latest_entry.title.split()[-1].lstrip("v") subprocess.run(["update-source-version", "lunatask", latest_version], check=True) Loading
pkgs/applications/misc/lunatask/default.nix +3 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ appimageTools.wrapType2 rec { --replace 'Exec=AppRun' 'Exec=${pname}' ''; passthru.updateScript = ./update.py; meta = with lib; { description = "All-in-one encrypted todo list, notebook, habit and mood tracker, pomodoro timer, and journaling app"; longDescription = '' Loading @@ -31,6 +33,7 @@ appimageTools.wrapType2 rec { ''; homepage = "https://lunatask.app"; downloadPage = "https://lunatask.app/download"; changelog = "https://lunatask.app/releases/${version}"; license = licenses.unfree; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; maintainers = with maintainers; [ henkery ]; Loading
pkgs/applications/misc/lunatask/update.py 0 → 100755 +18 −0 Original line number Diff line number Diff line #!/usr/bin/env nix-shell #!nix-shell -i python --packages python3 python3Packages.feedparser common-updater-scripts """ Parses the latest version from atom feed and runs update-source-version """ import subprocess import feedparser URL = "https://lunatask.app/releases/atom.xml" feed = feedparser.parse(URL) latest_entry = feed.entries[0] latest_version = latest_entry.title.split()[-1].lstrip("v") subprocess.run(["update-source-version", "lunatask", latest_version], check=True)