2024-06-08 23:40:44 -04:00
|
|
|
{
|
|
|
|
gtk-theme-src,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-13 22:27:54 -04:00
|
|
|
pkgs.dracula-theme.overrideAttrs (o: {
|
|
|
|
version = o.version + "+" + gtk-theme-src.shortRev;
|
2024-06-08 23:40:44 -04:00
|
|
|
src = gtk-theme-src;
|
2025-01-05 22:19:36 -05:00
|
|
|
|
|
|
|
# Generate hyprcursor theme
|
|
|
|
buildInputs =
|
|
|
|
(o.buildInputs or [])
|
|
|
|
++ (builtins.attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
hyprcursor
|
|
|
|
xcur2png
|
|
|
|
;
|
|
|
|
});
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
${o.preInstall or ""}
|
|
|
|
|
|
|
|
mkdir -p $out/share/icons/Dracula-cursors
|
|
|
|
|
|
|
|
cd ./kde/cursors
|
|
|
|
|
|
|
|
hyprcursor-util --extract ./Dracula-cursors
|
|
|
|
|
|
|
|
# this creates a symlink to 'theme_Extracted Theme' for some reason
|
|
|
|
hyprcursor-util --create ./extracted_Dracula-cursors
|
|
|
|
mv 'theme_Extracted Theme' ./extracted
|
|
|
|
|
|
|
|
cat <<EOF > ./extracted/manifest.hl
|
|
|
|
name = Dracula-cursors
|
|
|
|
description = Automatically extracted with hyprcursor-util
|
|
|
|
version = 0.1
|
|
|
|
cursors_directory = hyprcursors
|
|
|
|
EOF
|
|
|
|
|
|
|
|
mv ./extracted/* $out/share/icons/Dracula-cursors/
|
|
|
|
cd ../..
|
|
|
|
'';
|
2024-06-13 22:27:54 -04:00
|
|
|
})
|