From 19ae60662f76e44299514483c1247937e55cd910 Mon Sep 17 00:00:00 2001 From: Matheus Vieira Date: Mon, 19 Dec 2022 19:40:52 -0300 Subject: [PATCH] gruvbox-gtk-theme: init at unstable-2022-12-09 --- .../data/themes/gruvbox-gtk-theme/default.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/data/themes/gruvbox-gtk-theme/default.nix diff --git a/pkgs/data/themes/gruvbox-gtk-theme/default.nix b/pkgs/data/themes/gruvbox-gtk-theme/default.nix new file mode 100644 index 000000000000..a221918ad10d --- /dev/null +++ b/pkgs/data/themes/gruvbox-gtk-theme/default.nix @@ -0,0 +1,42 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, gnome-themes-extra +, gtk-engine-murrine +}: +stdenvNoCC.mkDerivation rec { + pname = "gruvbox-gtk-theme"; + version = "unstable-2022-12-09"; + + src = fetchFromGitHub { + owner = "Fausto-Korpsvart"; + repo = "Gruvbox-GTK-Theme"; + rev = "c3172d8dcba66f4125a014d280d41e23f0b95cad"; + sha256 = "1411mjlcj1d6kw3d3h1w9zsr0a08bzl5nddkkbv7w7lf67jy9b22"; + }; + + propagatedUserEnvPkgs = [ + gtk-engine-murrine + ]; + + buildInputs = [ + gnome-themes-extra + ]; + + dontBuild = true; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/themes + cp -a themes/* $out/share/themes + runHook postInstall + ''; + + meta = with lib; { + description = "A Gtk theme based on the Gruvbox colour pallete"; + homepage = "https://www.pling.com/p/1681313/"; + license = licenses.gpl3Only; + platforms = platforms.unix; + maintainers = [ maintainers.math-42 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f3c9cdee4394..f30ec9691edc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26627,6 +26627,8 @@ with pkgs; inherit (plasma5Packages) breeze-icons; }; + gruvbox-gtk-theme = callPackage ../data/themes/gruvbox-gtk-theme {}; + gubbi-font = callPackage ../data/fonts/gubbi { }; gyre-fonts = callPackage ../data/fonts/gyre {};