Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 58 lines 1.5 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 unstableGitUpdater, 6 gtk-engine-murrine, 7}: 8 9let 10 themeName = "Dracula"; 11 version = "4.0.0-unstable-2025-06-11"; 12in 13stdenvNoCC.mkDerivation { 14 pname = "dracula-theme"; 15 inherit version; 16 17 src = fetchFromGitHub { 18 owner = "dracula"; 19 repo = "gtk"; 20 rev = "0bf693bf6af37478fb6cf7e5452960c75155febf"; 21 hash = "sha256-zS34Z7oS+k8J3N65Ih5zLJzK36Y8BD5SSoNjh3qkuQc="; 22 }; 23 24 propagatedUserEnvPkgs = [ 25 gtk-engine-murrine 26 ]; 27 28 installPhase = '' 29 runHook preInstall 30 mkdir -p $out/share/themes/${themeName} 31 cp -a {assets,cinnamon,gnome-shell,gtk-2.0,gtk-3.0,gtk-3.20,gtk-4.0,index.theme,metacity-1,unity,xfwm4} $out/share/themes/${themeName} 32 33 cp -a kde/{color-schemes,plasma} $out/share/ 34 cp -a kde/kvantum $out/share/Kvantum 35 mkdir -p $out/share/aurorae/themes 36 cp -a kde/aurorae/* $out/share/aurorae/themes/ 37 mkdir -p $out/share/sddm/themes 38 cp -a kde/sddm/* $out/share/sddm/themes/ 39 40 mkdir -p $out/share/icons/Dracula-cursors 41 mv kde/cursors/Dracula-cursors/index.theme $out/share/icons/Dracula-cursors/cursor.theme 42 mv kde/cursors/Dracula-cursors/cursors $out/share/icons/Dracula-cursors/cursors 43 44 runHook postInstall 45 ''; 46 47 passthru.updateScript = unstableGitUpdater { 48 tagPrefix = "v"; 49 }; 50 51 meta = with lib; { 52 description = "Dracula variant of the Ant theme"; 53 homepage = "https://github.com/dracula/gtk"; 54 license = licenses.gpl3; 55 platforms = platforms.all; 56 maintainers = with maintainers; [ alexarice ]; 57 }; 58}