nix/pkgs/tokyo-night-gtk.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2022-04-06 15:20:16 +00:00
{
lib,
stdenv,
fetchFromGitHub,
gtk-engine-murrine,
}: let
2022-03-24 21:45:49 +00:00
themeName = "TokyoNight";
version = "05846583afd1aea8e888329cc5fcc562b0ef9c85";
in
2022-04-06 15:20:16 +00:00
stdenv.mkDerivation {
pname = "tokyo-night-gtk-theme";
inherit version;
2022-03-24 21:45:49 +00:00
2022-04-06 15:20:16 +00:00
src = fetchFromGitHub {
owner = "stronk-dev";
repo = "Tokyo-Night-Linux";
rev = version;
sha256 = "sha256-YQUB2a02qr+TsjJUxvziGjyF5/soYClDNtx7X5B1d28=";
};
2022-03-24 21:45:49 +00:00
2022-04-06 15:20:16 +00:00
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
2022-03-24 21:45:49 +00:00
2022-04-06 15:20:16 +00:00
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
'';
2022-03-24 21:45:49 +00:00
2022-04-06 15:20:16 +00:00
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];
};
}