feat(cursors): add wii cursors (WIP)

This commit is contained in:
Mohammad Rafiq 2025-03-24 20:29:51 +08:00
parent 18379a72b7
commit f3c8595eb7
No known key found for this signature in database
21 changed files with 93 additions and 6 deletions

40
flake.lock generated
View file

@ -1084,6 +1084,22 @@
"type": "github"
}
},
"nixpkgs_10": {
"locked": {
"lastModified": 1737003892,
"narHash": "sha256-RCzJE9wKByLCXmRBp+z8LK9EgdW+K+W/DXnJS4S/NVo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ae06b9c2d83cb5c8b12d7d0e32692e93d1379713",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1737469691,
@ -1198,11 +1214,11 @@
},
"nixpkgs_9": {
"locked": {
"lastModified": 1737003892,
"narHash": "sha256-RCzJE9wKByLCXmRBp+z8LK9EgdW+K+W/DXnJS4S/NVo=",
"lastModified": 1742707865,
"narHash": "sha256-RVQQZy38O3Zb8yoRJhuFgWo/iDIDj0hEdRTVfhOtzRk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ae06b9c2d83cb5c8b12d7d0e32692e93d1379713",
"rev": "dd613136ee91f67e5dba3f3f41ac99ae89c5406b",
"type": "github"
},
"original": {
@ -1360,6 +1376,7 @@
"sops-nix": "sops-nix",
"spicetify-nix": "spicetify-nix",
"stylix": "stylix",
"wii-cursor": "wii-cursor",
"yazi": "yazi"
}
},
@ -1723,6 +1740,21 @@
"type": "github"
}
},
"wii-cursor": {
"inputs": {
"nixpkgs": "nixpkgs_9"
},
"locked": {
"lastModified": 1742819018,
"narHash": "sha256-B2HXOJxQgQVPiXkPCONP6d/SPaYYCz17iGABzPAfCIs=",
"path": "/home/rafiq/repos/dotfiles/media/wii-cursors-xcursor",
"type": "path"
},
"original": {
"path": "/home/rafiq/repos/dotfiles/media/wii-cursors-xcursor",
"type": "path"
}
},
"xdph": {
"inputs": {
"hyprland-protocols": [
@ -1767,7 +1799,7 @@
"yazi": {
"inputs": {
"flake-utils": "flake-utils_4",
"nixpkgs": "nixpkgs_9",
"nixpkgs": "nixpkgs_10",
"rust-overlay": "rust-overlay_2"
},
"locked": {

View file

@ -79,5 +79,9 @@
impermanence.url = "github:nix-community/impermanence";
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
wii-cursor = {
type = "path";
path = "/home/rafiq/repos/dotfiles/media/wii-cursors-xcursor";
};
};
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,25 @@
{
lib,
stdenv,
}:
stdenv.mkDerivation {
pname = "wii-cursor";
version = "1.0";
src = ./.;
installPhase = ''
mkdir -p $out/share/icons/wii-cursor
install -Dm 0644 index.theme $out/share/icons/wii-cursor/index.theme
install -Dm 0755 -t $out/share/icons/wii-cursor/cursors cursors/*
'';
meta = with lib; {
description = "Wii Cursor";
homepage = "https://github.com/ful1e5/apple_cursor";
license = [
licenses.gpl3Only
];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,19 @@
{
description = "Wii Cursor Theme";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
{ self, nixpkgs, ... }:
let
system = "x86_64-linux"; # Adjust if needed
pkgs = import nixpkgs { inherit system; };
in
{
packages.${system}.wii-cursor = pkgs.callPackage ./default.nix { };
defaultPackage.${system} = self.packages.${system}.wii-cursor;
};
}

View file

@ -0,0 +1,5 @@
[Icon Theme]
Name=wii-cursor
Comment=wii-cursor XCursors
Inherits=default
Directories=cursors

View file

@ -9,8 +9,10 @@
enable = true;
image = ../../media/wallpaper.jpg;
cursor = {
name = "macOS dsfs";
package = pkgs.apple-cursor;
name = "wii-cursor";
# package = inputs.wii-cursor.packages.${pkgs.stdenv.hostPlatform.system}.wii-cursor;
package = builtins.trace (inputs.wii-cursor.packages.${pkgs.stdenv.hostPlatform.system}.wii-cursor
) (inputs.wii-cursor.packages.${pkgs.stdenv.hostPlatform.system}.wii-cursor);
size = 20;
};
};