From 76c6e8d2603a05531c5a0e09cf2818eee3131564 Mon Sep 17 00:00:00 2001 From: foglar Date: Fri, 10 Oct 2025 19:44:32 +0200 Subject: [PATCH] Added windows cursor theme --- .gitignore | 2 ++ flake.nix | 1 + windows-xp-cursor.nix | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .gitignore create mode 100644 windows-xp-cursor.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c9e080 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +result diff --git a/flake.nix b/flake.nix index 33bd993..cca2d93 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,7 @@ packages.${system} = { windows-xp-icons = pkgs.callPackage ./windows-xp-icons.nix { }; windows-xp-theme = pkgs.callPackage ./windows-xp-theme.nix { }; + windows-xp-cursor = pkgs.callPackage ./windows-xp-cursor.nix { }; default = self.packages.${system}.windows-xp-theme; }; }; diff --git a/windows-xp-cursor.nix b/windows-xp-cursor.nix new file mode 100644 index 0000000..5d1829d --- /dev/null +++ b/windows-xp-cursor.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchFromGitHub, inkscape, xcursorgen }: + +stdenv.mkDerivation rec { + pname = "modernxp-cursor-theme"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "na0miluv"; + repo = "modernXP-cursor-theme"; + rev = "main"; + sha256 = "sha256-1Pv+Ny1Gt7NM3cB038oQXb1cGIgg0VNxuO1IApTWo5U="; + }; + + nativeBuildInputs = [ inkscape xcursorgen ]; + + buildPhase = '' + bash build.sh + ''; + + installPhase = '' + mkdir -p $out/share/icons/ModernXP + cp -r dist/* $out/share/icons/ModernXP/ + ''; + + meta = with lib; { + description = "Modern Windows XP cursor theme"; + homepage = "https://github.com/na0miluv/modernXP-cursor-theme"; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = [ maintainers.yourself ]; + }; +} +