matcha-gtk-theme: 2021-12-25 -> 2022-06-07 (#176703)
* matcha-gtk-theme: reformat nix expression * matcha-gtk-theme: add update script * matcha-gtk-theme: 2021-12-25 -> 2022-06-07
This commit is contained in:
parent
500c75cdc3
commit
e84ce3a94a
|
@ -1,33 +1,50 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, gdk-pixbuf, librsvg, gtk-engine-murrine }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, gdk-pixbuf
|
||||||
|
, gtk-engine-murrine
|
||||||
|
, librsvg
|
||||||
|
, gitUpdater
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "matcha-gtk-theme";
|
pname = "matcha-gtk-theme";
|
||||||
version = "2021-12-25";
|
version = "2022-06-07";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "vinceliuice";
|
owner = "vinceliuice";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1wgq1aypm4cjv7yavlfmqcwahlddvh2gbg2f5ca0djgnpy9vha1g";
|
sha256 = "26xa9EGo2hci08Zw+X/A0Pn0VHxU8yfvRMiRusml+tc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gdk-pixbuf librsvg ];
|
buildInputs = [
|
||||||
|
gdk-pixbuf
|
||||||
|
librsvg
|
||||||
|
];
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
propagatedUserEnvPkgs = [
|
||||||
|
gtk-engine-murrine
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs install.sh
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
patchShebangs .
|
|
||||||
mkdir -p $out/share/themes
|
mkdir -p $out/share/themes
|
||||||
name= ./install.sh -d $out/share/themes
|
name= ./install.sh --dest $out/share/themes
|
||||||
install -D -t $out/share/gtksourceview-3.0/styles src/extra/gedit/matcha.xml
|
install -D -t $out/share/gtksourceview-3.0/styles src/extra/gedit/matcha.xml
|
||||||
mkdir -p $out/share/doc/${pname}
|
mkdir -p $out/share/doc/${pname}
|
||||||
cp -a src/extra/firefox $out/share/doc/${pname}
|
cp -a src/extra/firefox $out/share/doc/${pname}
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = gitUpdater {inherit pname version; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A stylish flat design theme for GTK based desktop environments";
|
description = "A stylish flat Design theme for GTK based desktop environments";
|
||||||
homepage = "https://vinceliuice.github.io/theme-matcha";
|
homepage = "https://vinceliuice.github.io/theme-matcha";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
|
Loading…
Reference in a new issue