2021-01-11 08:54:33 +01:00
|
|
|
{ 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-04-14 21:56:57 +02:00
|
|
|
version = "21.04.14";
|
2015-03-04 03:15:30 +01:00
|
|
|
|
2015-07-15 04:16:06 +02: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-04-14 21:56:57 +02:00
|
|
|
sha256 = "1ilzqh9f7skdfg5sl97zfgwrzvwa1zna22dpq0954gyyzvy7k7lg";
|
2015-03-04 03:15:30 +01:00
|
|
|
};
|
|
|
|
|
2019-09-12 16:47:48 +02:00
|
|
|
nativeBuildInputs = [ gtk3 ];
|
|
|
|
|
2020-04-18 01:53:38 +02:00
|
|
|
propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ];
|
2019-09-12 16:47:48 +02:00
|
|
|
|
|
|
|
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
|
|
|
'';
|
2015-07-15 04:16:06 +02:00
|
|
|
|
2021-01-11 08:54:33 +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;
|
2018-08-21 02:15:07 +02:00
|
|
|
# darwin cannot deal with file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2019-03-12 23:45:33 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2015-03-04 03:15:30 +01:00
|
|
|
};
|
|
|
|
}
|