nixpkgs/pkgs/by-name/nu/numix-solarized-gtk-theme/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

48 lines
1.4 KiB
Nix

{ 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 ];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
postPatch = ''
patchShebangs .
substituteInPlace Makefile --replace '$(DESTDIR)'/usr $out
'';
dontBuild = true;
installPhase = ''
runHook preInstall
for theme in colors/*.colors; do
theme="''${theme##*/}"
make THEME="''${theme/.colors/}" install
done
runHook postInstall
'';
meta = with 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.gpl3Only;
platforms = platforms.linux;
maintainers = [ maintainers.offline ];
};
}