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