big refactor

This commit is contained in:
Asaki Yuki 2026-04-09 10:36:32 +07:00
commit 76d68230f6
81 changed files with 3065 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
cursors ? "aemeath",
size ? 48,
}:
let
_b = name: url: hash: { inherit name url hash; };
_q = name: hash: { ${name} = _b name "https://static.asakiyuki.com/cursors/linux/${name}.tar.gz" hash; };
cursors-data = (
_q "castorice" "sha256-nqAC+Itr+TXLGG8zYDBoBve+MeRckds5BM23DrsCTMM="
// _q "aemeath" "sha256-0eEsUks5MwW4g5Xau24SgchX+LD9Ra3azAH0KL9JzQw="
// _q "elysia" "sha256-mjDHklWrX5Pp/vejRQiMk0VA6afY04HXGyGD0PcopdI="
// _q "cartethyia" "sha256-jYIDoX+rfUjw6LXrqE4y8j5IL0vByrrRkgRuz08Zy6U="
).${cursors};
in
{ pkgs, ... }:
{
gtk.enable = true;
x11.enable = true;
name = cursors-data.name;
size = size;
package = pkgs.runCommand "moveUp" { } ''
mkdir -p $out/share/icons
ln -s ${
pkgs.fetchzip {
url = cursors-data.url;
hash = cursors-data.hash;
}
} $out/share/icons/${cursors-data.name}
'';
}