From 54ab621fa7bf19ef752562c3f7cabc42fd5f0eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Sat, 15 Sep 2018 11:50:24 -0300 Subject: [PATCH] matcha: init at 2018-09-14 (#46693) --- pkgs/misc/themes/matcha/default.nix | 32 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/misc/themes/matcha/default.nix diff --git a/pkgs/misc/themes/matcha/default.nix b/pkgs/misc/themes/matcha/default.nix new file mode 100644 index 000000000000..264d171292d2 --- /dev/null +++ b/pkgs/misc/themes/matcha/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, gdk_pixbuf, librsvg, gtk-engine-murrine }: + +stdenv.mkDerivation rec { + name = "matcha-${version}"; + version = "2018-09-14"; + + src = fetchFromGitHub { + owner = "vinceliuice"; + repo = "matcha"; + rev = "fe35259742b5ae007ab17d46d21acad5754477b9"; + sha256 = "1qwb8l1xfx9ca2y9gcsckxikijz1ij28dirvpqvhbbyn1m8i9hwd"; + }; + + buildInputs = [ gdk_pixbuf librsvg ]; + + propagatedUserEnvPkgs = [ gtk-engine-murrine ]; + + installPhase = '' + patchShebangs . + substituteInPlace Install --replace '$HOME/.themes' "$out/share/themes" + ./Install + install -D -t $out/share/gtksourceview-3.0/styles src/extra/gedit/matcha.xml + ''; + + meta = with stdenv.lib; { + description = "A stylish Design theme for GTK based desktop environments"; + homepage = https://vinceliuice.github.io/theme-matcha; + license = licenses.gpl3; + platforms = platforms.unix; + maintainers = [ maintainers.romildo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9fd7d837dfd3..e987aa733936 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21682,6 +21682,8 @@ with pkgs; martyr = callPackage ../development/libraries/martyr { }; + matcha = callPackage ../misc/themes/matcha { }; + # previously known as flat-plat materia-theme = callPackage ../misc/themes/materia-theme { };