12 electron = electron_29;
18 src = fetchFromGitHub {
19 owner = "davidsmorais";
22 hash = "sha256-9Z/r5T5ZI5aBghHmwiJcft/x/wTRzDlbIupujN2RFfU=";
25 packageJSON = ./package.json;
27 offlineCache = fetchYarnDeps {
28 yarnLock = "${src}/yarn.lock";
29 hash = "sha256-GTiNv7u1QK/wjQgpka7REuoLn2wjZG59kYJQaZZPycI=";
32 env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
42 yarn --offline run electron-builder \
44 -c.electronDist=${electron}/libexec/electron \
45 -c.electronVersion=${electron.version}
54 mkdir -p "$out/share/lib/kuro"
55 cp -r ./deps/kuro/dist/*-unpacked/{locales,resources{,.pak}} "$out/share/lib/kuro"
58 install -Dm644 ./deps/kuro/static/Icon.png $out/share/icons/hicolor/1024x1024/apps/kuro.png
61 makeWrapper '${electron}/bin/electron' "$out/bin/kuro" \
62 --add-flags "$out/share/lib/kuro/resources/app.asar" \
63 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
68 # Do not attempt generating a tarball for contents again.
69 # note: `doDist = false;` does not work.
78 genericName = "Microsoft To-Do Client";
79 comment = meta.description;
80 categories = [ "Office" ];
81 startupWMClass = "kuro";
86 changelog = "https://github.com/davidsmorais/kuro/releases/tag/${src.rev}";
87 description = "An unofficial, featureful, open source, community-driven, free Microsoft To-Do app";
88 homepage = "https://github.com/davidsmorais/kuro";
89 license = licenses.mit;
91 maintainers = with maintainers; [ ChaosAttractor ];
92 inherit (electron.meta) platforms;