parent
3e1df66156
commit
b307e7df13
3 changed files with 52 additions and 3 deletions
legacyPackages/dracula
|
@ -10,6 +10,11 @@ pkgs.lib.makeScope pkgs.newScope (drac: {
|
|||
|
||||
gtk = import ./gtk.nix {inherit (inputs) gtk-theme-src pkgs;};
|
||||
|
||||
hyprcursor = drac.callPackage ./hyprcursor.nix {
|
||||
inherit (inputs) gtk-theme-src mkVersion;
|
||||
inherit pkgs;
|
||||
};
|
||||
|
||||
plymouth = drac.callPackage ./plymouth.nix {
|
||||
inherit (inputs) dracula-plymouth-src mkVersion;
|
||||
};
|
||||
|
|
29
legacyPackages/dracula/hyprcursor.nix
Normal file
29
legacyPackages/dracula/hyprcursor.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
gtk-theme-src,
|
||||
mkVersion,
|
||||
pkgs,
|
||||
stdenv,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "dracula-hyprcursor";
|
||||
version = mkVersion gtk-theme-src;
|
||||
|
||||
src = "${gtk-theme-src}/kde/cursors";
|
||||
|
||||
buildInputs = with pkgs; [hyprcursor xcur2png];
|
||||
|
||||
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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue