32 lines
927 B
Nix
32 lines
927 B
Nix
{
|
|
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}
|
|
'';
|
|
}
|