2023-04-12 12:48:02 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub, gtk-engine-murrine }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
themeName = "Dracula";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "4.0.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
in
|
2023-04-12 12:48:02 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "dracula-theme";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dracula";
|
|
|
|
repo = "gtk";
|
|
|
|
rev = "v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-q3/uBd+jPFhiVAllyhqf486Jxa0mnCDSIqcm/jwGtJA=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/themes/${themeName}
|
2022-03-30 09:31:56 +00:00
|
|
|
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}
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
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/
|
2022-01-03 16:56:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-16 20:44:37 +00:00
|
|
|
description = "Dracula variant of the Ant theme";
|
|
|
|
homepage = "https://github.com/dracula/gtk";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
2021-10-28 06:52:43 +00:00
|
|
|
maintainers = with maintainers; [ alexarice ];
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|