nixpkgs/pkgs/data/themes/numix-solarized/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, python3, sassc, glib, gdk-pixbuf, inkscape, gtk-engine-murrine }:
stdenv.mkDerivation rec {
pname = "numix-solarized-gtk-theme";
version = "20230408";
src = fetchFromGitHub {
owner = "Ferdi265";
repo = pname;
rev = version;
sha256 = "sha256-r5xCe8Ew+/SuCUaZ0yjlumORTy/y1VwbQQjQ6uEyGsY=";
};
nativeBuildInputs = [ python3 sassc glib gdk-pixbuf inkscape ];
2018-04-12 23:56:41 +02:00
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
postPatch = ''
patchShebangs .
2018-04-12 23:56:41 +02:00
substituteInPlace Makefile --replace '$(DESTDIR)'/usr $out
'';
2018-04-12 23:56:41 +02:00
buildPhase = "true";
installPhase = ''
runHook preInstall
for theme in colors/*.colors; do
theme="''${theme##*/}"
2018-04-12 23:56:41 +02:00
make THEME="''${theme/.colors/}" install
done
runHook postInstall
2018-04-12 23:56:41 +02:00
'';
meta = with lib; {
2018-04-12 23:56:41 +02:00
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.gpl3Only;
platforms = platforms.linux;
2018-04-12 23:56:41 +02:00
maintainers = [ maintainers.offline ];
};
}