40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
gtk-engine-murrine,
|
|
}: let
|
|
themeName = "TokyoNight";
|
|
version = "05846583afd1aea8e888329cc5fcc562b0ef9c85";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "tokyo-night-gtk-theme";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stronk-dev";
|
|
repo = "Tokyo-Night-Linux";
|
|
rev = version;
|
|
sha256 = "sha256-YQUB2a02qr+TsjJUxvziGjyF5/soYClDNtx7X5B1d28=";
|
|
};
|
|
|
|
propagatedUserEnvPkgs = [
|
|
gtk-engine-murrine
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/themes/${themeName}
|
|
cd usr/share/themes/TokyoNight/
|
|
cp -a {chrome,cinnamon,gnome-shell,gtk-2.0,gtk-3.0,gtk-assets,gtk-icons,index.theme,metacity-1,plank,unity,xfwm4} $out/share/themes/${themeName}
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Dark theme for GTK, based on the VSCode theme";
|
|
homepage = "https://github.com/stronk-dev/Tokyo-Night-Linux";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [mrhedgehog];
|
|
};
|
|
}
|