Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
appimageTools,
lib,
fetchurl,
}:
let
version = "3.1.1";
pname = "sunsama";
src = fetchurl {
url = "https://download.todesktop.com/2003096gmmnl0g1/sunsama-${version}-build-250512vfxlcgvds-x86_64.AppImage";
hash = "sha512-VOzD/kWfsP2GR1uYkVUdjAuw9tlKjHRNxYuDSYYH7fn43Bk+wfgom/ofu3it/vQjjtuezkTN6gi96U87ypQrSA==";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
install -Dm444 ${appimageContents}/sunsama.desktop $out/share/applications/sunsama.desktop
install -Dm444 {${appimageContents}/usr,$out}/share/icons/hicolor/512x512/apps/sunsama.png
substituteInPlace $out/share/applications/sunsama.desktop \
--replace-fail 'Exec=AppRun' 'Exec=sunsama'
'';
meta = {
description = "Digital daily planner that helps you feel calm and stay focused";
homepage = "https://sunsama.com";
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ dan-kc ];
platforms = [ "x86_64-linux" ];
mainProgram = "sunsama";
};
}