2024-07-23 16:04:18 -04:00
|
|
|
{
|
|
|
|
gtk-theme-src,
|
|
|
|
mkVersion,
|
|
|
|
pkgs,
|
|
|
|
stdenv,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "dracula-hyprcursor";
|
|
|
|
version = mkVersion gtk-theme-src;
|
|
|
|
|
|
|
|
src = "${gtk-theme-src}/kde/cursors";
|
|
|
|
|
2024-08-31 19:16:06 -04:00
|
|
|
buildInputs = builtins.attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
hyprcursor
|
|
|
|
xcur2png
|
|
|
|
;
|
|
|
|
};
|
2024-07-23 16:04:18 -04:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
hyprcursor-util --extract ./Dracula-cursors
|
|
|
|
hyprcursor-util --create ./extracted_Dracula-cursors
|
|
|
|
|
|
|
|
cat <<EOF > ./extracted_Dracula-cursors/manifest.hl
|
|
|
|
name = Dracula-cursors
|
|
|
|
description = Automatically extracted with hyprcursor-util
|
|
|
|
version = 0.1
|
|
|
|
cursors_directory = hyprcursors
|
|
|
|
EOF
|
|
|
|
|
|
|
|
mv 'theme_Extracted Theme' $out
|
|
|
|
'';
|
|
|
|
}
|