Skip to content

Commit

Permalink
kuro: bump electron version and do clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt committed Mar 17, 2024
1 parent a7d3862 commit 87f1d1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
21 changes: 13 additions & 8 deletions pkgs/applications/misc/kuro/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
, makeDesktopItem
, copyDesktopItems
, mkYarnPackage
, electron
, electron_29
}:

let
electron = electron_29;
in
mkYarnPackage rec {
pname = "kuro";
version = "9.0.0";

src = fetchFromGitHub {
owner = "davidsmorais";
repo = pname;
repo = "kuro";
rev = "v${version}";
sha256 = "sha256-9Z/r5T5ZI5aBghHmwiJcft/x/wTRzDlbIupujN2RFfU=";
hash = "sha256-9Z/r5T5ZI5aBghHmwiJcft/x/wTRzDlbIupujN2RFfU=";
};

packageJSON = ./package.json;
Expand All @@ -26,7 +29,7 @@ mkYarnPackage rec {
hash = "sha256-GTiNv7u1QK/wjQgpka7REuoLn2wjZG59kYJQaZZPycI=";
};

ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";

nativeBuildInputs = [
makeWrapper
Expand Down Expand Up @@ -68,21 +71,23 @@ mkYarnPackage rec {

desktopItems = [
(makeDesktopItem {
name = pname;
exec = pname;
icon = pname;
name = "kuro";
exec = "kuro";
icon = "kuro";
desktopName = "Kuro";
genericName = "Microsoft To-Do Client";
comment = meta.description;
categories = [ "Office" ];
startupWMClass = pname;
startupWMClass = "kuro";
})
];

meta = with lib; {
changelog = "https://github.com/davidsmorais/kuro/releases/tag/${src.rev}";
description = "An unofficial, featureful, open source, community-driven, free Microsoft To-Do app";
homepage = "https://github.com/davidsmorais/kuro";
license = licenses.mit;
mainProgram = "kuro";
maintainers = with maintainers; [ ChaosAttractor ];
inherit (electron.meta) platforms;
};
Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32822,9 +32822,7 @@ with pkgs;

kupfer = callPackage ../applications/misc/kupfer { };

kuro = callPackage ../applications/misc/kuro {
electron = electron_22;
};
kuro = callPackage ../applications/misc/kuro { };

timoni = callPackage ../applications/networking/cluster/timoni { };

Expand Down

0 comments on commit 87f1d1b

Please sign in to comment.