nixpkgs/pkgs/data/themes/matcha/default.nix

37 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, gdk-pixbuf, librsvg, gtk-engine-murrine }:
2018-09-15 14:50:24 +00:00
2019-09-08 20:22:41 +00:00
stdenv.mkDerivation rec {
pname = "matcha-gtk-theme";
version = "2021-12-25";
2018-09-15 14:50:24 +00:00
src = fetchFromGitHub {
owner = "vinceliuice";
2019-09-08 20:22:41 +00:00
repo = pname;
2019-09-30 10:00:09 +00:00
rev = version;
sha256 = "1wgq1aypm4cjv7yavlfmqcwahlddvh2gbg2f5ca0djgnpy9vha1g";
2018-09-15 14:50:24 +00:00
};
2019-05-22 11:03:39 +00:00
buildInputs = [ gdk-pixbuf librsvg ];
2018-09-15 14:50:24 +00:00
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
installPhase = ''
runHook preInstall
2018-09-15 14:50:24 +00:00
patchShebangs .
2018-12-24 20:04:05 +00:00
mkdir -p $out/share/themes
2020-02-27 18:50:06 +00:00
name= ./install.sh -d $out/share/themes
2018-09-15 14:50:24 +00:00
install -D -t $out/share/gtksourceview-3.0/styles src/extra/gedit/matcha.xml
mkdir -p $out/share/doc/${pname}
cp -a src/extra/firefox $out/share/doc/${pname}
runHook postInstall
2018-09-15 14:50:24 +00:00
'';
meta = with lib; {
description = "A stylish flat design theme for GTK based desktop environments";
2020-02-06 15:56:24 +00:00
homepage = "https://vinceliuice.github.io/theme-matcha";
license = licenses.gpl3Only;
2018-09-15 14:50:24 +00:00
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}