159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
52 lines
1.5 KiB
Nix
52 lines
1.5 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitHub, unstableGitUpdater, gtk-engine-murrine }:
|
|
|
|
let
|
|
themeName = "Dracula";
|
|
version = "4.0.0-unstable-2024-09-07";
|
|
in
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "dracula-theme";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dracula";
|
|
repo = "gtk";
|
|
rev = "19e0dcb5d821df8948a96fef8be551f463fcf0d2";
|
|
hash = "sha256-WfpoGEs2ki84HwE53Fh8CFiybJXZhaiP7m0sfx9Z1X4=";
|
|
};
|
|
|
|
propagatedUserEnvPkgs = [
|
|
gtk-engine-murrine
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/themes/${themeName}
|
|
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}
|
|
|
|
cp -a kde/{color-schemes,plasma} $out/share/
|
|
cp -a kde/kvantum $out/share/Kvantum
|
|
mkdir -p $out/share/aurorae/themes
|
|
cp -a kde/aurorae/* $out/share/aurorae/themes/
|
|
mkdir -p $out/share/sddm/themes
|
|
cp -a kde/sddm/* $out/share/sddm/themes/
|
|
|
|
mkdir -p $out/share/icons/Dracula-cursors
|
|
mv kde/cursors/Dracula-cursors/index.theme $out/share/icons/Dracula-cursors/cursor.theme
|
|
mv kde/cursors/Dracula-cursors/cursors $out/share/icons/Dracula-cursors/cursors
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
tagPrefix = "v";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Dracula variant of the Ant theme";
|
|
homepage = "https://github.com/dracula/gtk";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ alexarice ];
|
|
};
|
|
}
|