mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
e84ce3a94a
* matcha-gtk-theme: reformat nix expression * matcha-gtk-theme: add update script * matcha-gtk-theme: 2021-12-25 -> 2022-06-07
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gdk-pixbuf
|
|
, gtk-engine-murrine
|
|
, librsvg
|
|
, gitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "matcha-gtk-theme";
|
|
version = "2022-06-07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vinceliuice";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "26xa9EGo2hci08Zw+X/A0Pn0VHxU8yfvRMiRusml+tc=";
|
|
};
|
|
|
|
buildInputs = [
|
|
gdk-pixbuf
|
|
librsvg
|
|
];
|
|
|
|
propagatedUserEnvPkgs = [
|
|
gtk-engine-murrine
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs install.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/themes
|
|
name= ./install.sh --dest $out/share/themes
|
|
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
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater {inherit pname version; };
|
|
|
|
meta = with lib; {
|
|
description = "A stylish flat Design theme for GTK based desktop environments";
|
|
homepage = "https://vinceliuice.github.io/theme-matcha";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|