mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
8402a74cce
The Inkscape CLI interface has been changed with 1.x and packages are not adjusted yet to this change. Let's use inkscape 0.x instead.
50 lines
1.5 KiB
Nix
50 lines
1.5 KiB
Nix
{ stdenv, fetchFromGitHub, python3, sass, glib, gdk-pixbuf, libxml2,
|
|
inkscape_0, optipng, gtk-engine-murrine
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "20180913";
|
|
pname = "numix-solarized-gtk-theme";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ferdi265";
|
|
repo = "numix-solarized-gtk-theme";
|
|
rev = version;
|
|
sha256 = "1kda0lyqi3cxh163fbj8yyi6jj6pf0y980k4s0cmyi3hkh4cqyd5";
|
|
};
|
|
|
|
nativeBuildInputs = [ python3 sass glib gdk-pixbuf libxml2 inkscape_0 optipng ];
|
|
|
|
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
substituteInPlace Makefile --replace '$(DESTDIR)'/usr $out
|
|
substituteInPlace scripts/render-assets.sh \
|
|
--replace /usr/bin/inkscape ${inkscape_0}/bin/inkscape \
|
|
--replace /usr/bin/optipng ${optipng}/bin/optipng
|
|
'';
|
|
|
|
buildPhase = "true";
|
|
|
|
installPhase = ''
|
|
for theme in *.colors; do
|
|
make THEME="''${theme/.colors/}" install
|
|
done
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Solarized versions of Numix GTK2 and GTK3 theme";
|
|
longDescription = ''
|
|
This is a fork of the Numix GTK theme that replaces the colors of the theme
|
|
and icons to use the solarized theme with a solarized green accent color.
|
|
This theme supports both the dark and light theme, just as Numix proper.
|
|
'';
|
|
homepage = "https://github.com/Ferdi265/numix-solarized-gtk-theme";
|
|
downloadPage = "https://github.com/Ferdi265/numix-solarized-gtk-theme/releases";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.offline ];
|
|
};
|
|
}
|