Skip to content

Commit

Permalink
Merge pull request NixOS#249423 from Henry-Hiles/init-google-cursor
Browse files Browse the repository at this point in the history
google-cursor: init at 2.0.0
  • Loading branch information
drupol committed Aug 17, 2023
2 parents 02bba6c + c4ed81e commit bfa55aa
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13950,6 +13950,12 @@
githubId = 115877;
name = "Kenny Shen";
};
quadradical = {
email = "nixos@henryhiles.com";
github = "Henry-Hiles";
githubId = 71790868;
name = "Henry Hiles";
};
quag = {
email = "quaggy@gmail.com";
github = "quag";
Expand Down
51 changes: 51 additions & 0 deletions pkgs/data/icons/google-cursor/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{ stdenvNoCC
, fetchzip
, lib
}:

let
colors = [
{
name = "Black";
hash = "sha256-pb2U9j1m8uJaILxUxKqp8q9FGuwzZsQvhPP3bfGZL5I=";
}
{
name = "Blue";
hash = "sha256-PmJeGShQLIC7ceRwQvSbphqz19fKptksZeHKi9QSL5Y=";
}
{
name = "Red";
hash = "sha256-/X81jLoWaw4UMoDRf1f6oaKKRWexQc4PAACy3doV4Kc=";
}
{
name = "White";
hash = "sha256-eT/Zy6O6TBD6G8q/dg+9rNYDHutLLxEY1lvLDP90b+g=";
}
];
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "google-cursor";
version = "2.0.0";

sourceRoot = ".";
srcs = map
(color: (fetchzip {
url = "https://github.com/ful1e5/Google_Cursor/releases/download/v${finalAttrs.version}/GoogleDot-${color.name}.tar.gz";
name = "GoogleDot-${color.name}";
hash = color.hash;
}))
colors;

postInstall = ''
mkdir -p $out/share/icons
cp -r GoogleDot-* $out/share/icons
'';

meta = with lib; {
description = "An opensource cursor theme inspired by Google";
homepage = "https://github.com/ful1e5/Google_Cursor";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ quadradical ];
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5400,6 +5400,8 @@ with pkgs;

go-thumbnailer = callPackage ../applications/misc/go-thumbnailer { };

google-cursor = callPackage ../data/icons/google-cursor { };

geckodriver = callPackage ../development/tools/geckodriver {
inherit (darwin.apple_sdk.frameworks) Security;
};
Expand Down

0 comments on commit bfa55aa

Please sign in to comment.