nix: use posy's cursor

This commit is contained in:
Primrose 2024-07-23 23:17:28 +02:00
parent 261cadf747
commit 1c6b0131d5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 39 additions and 6 deletions

View file

@ -36,6 +36,8 @@
fish-lsp = pkgs.callPackage ./fish-lsp { };
maeel = pkgs.callPackage ./maeel.nix { };
tokei = pkgs.callPackage ./tokei { }; # alpha tokei with typst, skel, hledger
posy-cursor = pkgs.callPackage ./posy-cursor.nix { };
};
};
}

View file

@ -0,0 +1,26 @@
{
lib,
stdenv,
fetchFromGitHub,
}:
let
rev = "bd2bac08bf01e25846a6643dd30e2acffa9517d4";
in
stdenv.mkDerivation {
pname = "posy-cursor";
version = lib.substring 0 7 rev;
src = fetchFromGitHub {
owner = "leana8959";
repo = "posy-improved-cursor-linux";
inherit rev;
hash = "sha256-ndxz0KEU18ZKbPK2vTtEWUkOB/KqA362ipJMjVEgzYQ=";
};
installPhase = ''
install -dm 0755 $out/share/icons
cp -r Posy_Cursor* $out/share/icons
'';
}