2019-09-12 16:47:48 +02:00
|
|
|
{ stdenv, fetchFromGitHub, gtk3, numix-icon-theme, hicolor-icon-theme }:
|
2016-12-08 16:07:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-26 02:20:06 +01:00
|
|
|
pname = "numix-icon-theme-square";
|
2020-11-03 13:02:27 +01:00
|
|
|
version = "20.09.19";
|
2016-12-08 16:07:53 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numixproject";
|
2019-01-26 02:20:06 +01:00
|
|
|
repo = pname;
|
2017-09-20 12:10:44 +02:00
|
|
|
rev = version;
|
2020-11-03 13:02:27 +01:00
|
|
|
sha256 = "0afraarfcd66mpidmn0l90wif8kmwzdj3s09g704kwszyijxs80z";
|
2016-12-08 16:07:53 +01:00
|
|
|
};
|
|
|
|
|
2020-02-19 13:02:14 +01:00
|
|
|
nativeBuildInputs = [ gtk3 ];
|
2016-12-08 16:07:53 +01:00
|
|
|
|
2020-04-16 14:47:57 +02:00
|
|
|
propagatedBuildInputs = [ numix-icon-theme hicolor-icon-theme ];
|
2019-09-12 16:47:48 +02:00
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2016-12-08 16:07:53 +01:00
|
|
|
installPhase = ''
|
2020-04-16 14:47:57 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
2016-12-08 16:07:53 +01:00
|
|
|
mkdir -p $out/share/icons
|
2020-04-16 14:47:57 +02:00
|
|
|
cp -a Numix-Square{,-Light} $out/share/icons
|
2016-12-08 16:07:53 +01:00
|
|
|
|
2019-11-19 11:11:54 +01:00
|
|
|
for panel in $out/share/icons/*/*/panel; do
|
|
|
|
ln -sf $(realpath ${numix-icon-theme}/share/icons/Numix/16/$(readlink $panel)) $panel
|
|
|
|
done
|
|
|
|
|
2018-03-04 11:45:36 +01:00
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
2020-04-16 14:47:57 +02:00
|
|
|
|
|
|
|
runHook postInstall
|
2018-03-04 11:45:36 +01:00
|
|
|
'';
|
|
|
|
|
2016-12-08 16:07:53 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Numix icon theme (square version)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://numixproject.github.io";
|
2016-12-08 16:07:53 +01:00
|
|
|
license = licenses.gpl3;
|
2018-08-21 02:38:41 +02:00
|
|
|
# darwin cannot deal with file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2016-12-08 16:07:53 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|