From 5a6e995a46ccb5e16c3c7ddba700c8d753b8ae41 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Sat, 11 Dec 2021 23:38:40 +0100 Subject: [PATCH] nordzy-cursor-theme: init at 0.1.0 --- .../icons/nordzy-cursor-theme/default.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/data/icons/nordzy-cursor-theme/default.nix diff --git a/pkgs/data/icons/nordzy-cursor-theme/default.nix b/pkgs/data/icons/nordzy-cursor-theme/default.nix new file mode 100644 index 000000000000..7648a57474ae --- /dev/null +++ b/pkgs/data/icons/nordzy-cursor-theme/default.nix @@ -0,0 +1,37 @@ +{ stdenv +, fetchFromGitHub +, lib +}: + +stdenv.mkDerivation rec { + pname = "nordzy-cursor-theme"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "alvatip"; + repo = "Nordzy-cursors"; + rev = "v${version}"; + sha256 = "XabfKFyeII7Xl+ozzpPnc4xFH4B7GzCTLq4M1QPSZPw="; + }; + + installPhase = '' + mkdir -p $out/share/icons + + cp -r nordzy-dark/ $out/share/icons/Nordzy-cursors + mv $out/share/icons/Nordzy-cursors/index.theme $out/share/icons/Nordzy-cursors/cursor.theme + mv $out/share/icons/Nordzy-cursors/Nordzy-cursors $out/share/icons/Nordzy-cursors/cursors + cp -r nordzy-white/ $out/share/icons/Nordzy-white-cursors + mv $out/share/icons/Nordzy-white-cursors/index.theme $out/share/icons/Nordzy-white-cursors/cursor.theme + mv $out/share/icons/Nordzy-white-cursors/Nordzy-white-cursors $out/share/icons/Nordzy-white-cursors/cursors + ''; + + meta = with lib; { + description = "Cursor theme using the Nord color palette and based on Vimix and cz-Viator"; + homepage = "https://github.com/alvatip/Nordzy-cursors"; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ + alexnortung + ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 98e18dbe8f39..ee72bb9ef2dd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23542,6 +23542,8 @@ with pkgs; nordic = callPackage ../data/themes/nordic { }; + nordzy-cursor-theme = callPackage ../data/icons/nordzy-cursor-theme { }; + inherit (callPackages ../data/fonts/noto-fonts {}) noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-emoji-blob-bin noto-fonts-extra;