Added windows cursor theme

This commit is contained in:
foglar 2025-10-10 19:44:32 +02:00
parent 35ae6d25b2
commit 76c6e8d260
3 changed files with 36 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
result

View File

@ -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;
};
};

33
windows-xp-cursor.nix Normal file
View File

@ -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 ];
};
}