summary refs log tree commit diff
path: root/pkgs/data/icons
diff options
context:
space:
mode:
authorHenry Hiles <henry@henryhiles.com>2023-08-16 17:32:54 -0400
committerHenry Hiles <henry@henryhiles.com>2023-08-17 10:00:33 -0400
commitc4ed81e15b8e401258ca628e6fd1d1090749c19a (patch)
treeb6d53dc01a5d8c4c134dd6df1c5ba5e892cb3451 /pkgs/data/icons
parent88c5b9f8c821e956e66735888afca90072cd7281 (diff)
downloadnixpkgs-c4ed81e15b8e401258ca628e6fd1d1090749c19a.tar
nixpkgs-c4ed81e15b8e401258ca628e6fd1d1090749c19a.tar.gz
nixpkgs-c4ed81e15b8e401258ca628e6fd1d1090749c19a.tar.bz2
nixpkgs-c4ed81e15b8e401258ca628e6fd1d1090749c19a.tar.lz
nixpkgs-c4ed81e15b8e401258ca628e6fd1d1090749c19a.tar.xz
nixpkgs-c4ed81e15b8e401258ca628e6fd1d1090749c19a.tar.zst
nixpkgs-c4ed81e15b8e401258ca628e6fd1d1090749c19a.zip
google-cursor: init at 2.0.0
Diffstat (limited to 'pkgs/data/icons')
-rw-r--r--pkgs/data/icons/google-cursor/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/data/icons/google-cursor/default.nix b/pkgs/data/icons/google-cursor/default.nix
new file mode 100644
index 00000000000..c3fb5aad29a
--- /dev/null
+++ b/pkgs/data/icons/google-cursor/default.nix
@@ -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 ];
+  };
+})