big refactor
This commit is contained in:
commit
76d68230f6
81 changed files with 3065 additions and 0 deletions
31
packages/custom-cursors.nix
Normal file
31
packages/custom-cursors.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
Reference in a new issue