nixpkgs/pkgs/data/icons/numix-icon-theme/default.nix

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

42 lines
988 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, gtk3, gnome-icon-theme, hicolor-icon-theme }:
2015-03-04 03:15:30 +01:00
stdenv.mkDerivation rec {
2018-02-24 12:31:11 +01:00
pname = "numix-icon-theme";
2021-10-31 12:09:29 +01:00
version = "21.10.31";
2015-03-04 03:15:30 +01:00
src = fetchFromGitHub {
owner = "numixproject";
2018-02-24 12:31:11 +01:00
repo = pname;
2017-12-26 18:58:12 +01:00
rev = version;
2021-10-31 12:09:29 +01:00
sha256 = "sha256-wyVvXifdbKR2aiBMrki8y/H0khH4eFD1RHVSC+jAT28=";
2015-03-04 03:15:30 +01:00
};
nativeBuildInputs = [ gtk3 ];
propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ];
dontDropIconThemeCache = true;
2015-03-04 03:15:30 +01:00
installPhase = ''
2021-04-14 21:56:57 +02:00
runHook preInstall
2018-02-24 12:31:11 +01:00
mkdir -p $out/share/icons
2019-10-01 14:47:21 +02:00
cp -a Numix{,-Light} $out/share/icons/
2018-02-24 12:31:11 +01:00
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
2021-04-14 21:56:57 +02:00
runHook postInstall
2015-03-04 03:15:30 +01:00
'';
meta = with lib; {
2015-03-04 03:15:30 +01:00
description = "Numix icon theme";
2020-03-30 07:50:39 +02:00
homepage = "https://numixproject.github.io";
2021-04-14 21:56:57 +02:00
license = licenses.gpl3Only;
# darwin cannot deal with file names differing only in case
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
2015-03-04 03:15:30 +01:00
};
}