2022-06-14 20:30:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gtk-engine-murrine
|
|
|
|
, librsvg
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2018-09-15 14:50:24 +00:00
|
|
|
|
2019-09-08 20:22:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-09 10:28:28 +00:00
|
|
|
pname = "matcha-gtk-theme";
|
2022-06-14 20:30:18 +00:00
|
|
|
version = "2022-06-07";
|
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;
|
2022-06-14 20:30:18 +00:00
|
|
|
sha256 = "26xa9EGo2hci08Zw+X/A0Pn0VHxU8yfvRMiRusml+tc=";
|
2018-09-15 14:50:24 +00:00
|
|
|
};
|
|
|
|
|
2022-06-14 20:30:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
];
|
2018-09-15 14:50:24 +00:00
|
|
|
|
2022-06-14 20:30:18 +00:00
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs install.sh
|
|
|
|
'';
|
2018-09-15 14:50:24 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-04-05 12:59:51 +00:00
|
|
|
runHook preInstall
|
2018-12-24 20:04:05 +00:00
|
|
|
mkdir -p $out/share/themes
|
2022-06-14 20:30:18 +00:00
|
|
|
name= ./install.sh --dest $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
|
2020-02-27 18:50:44 +00:00
|
|
|
mkdir -p $out/share/doc/${pname}
|
|
|
|
cp -a src/extra/firefox $out/share/doc/${pname}
|
2021-04-05 12:59:51 +00:00
|
|
|
runHook postInstall
|
2018-09-15 14:50:24 +00:00
|
|
|
'';
|
|
|
|
|
2022-06-14 20:30:18 +00:00
|
|
|
passthru.updateScript = gitUpdater {inherit pname version; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-06-14 20:30:18 +00:00
|
|
|
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";
|
2021-01-12 17:29:03 +00:00
|
|
|
license = licenses.gpl3Only;
|
2018-09-15 14:50:24 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|