Files
nixpkgs/pkgs/by-name/su/sunsama/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

35 lines
1.1 KiB
Nix

{
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";
};
}