2019-09-12 07:47:48 -07:00
|
|
|
{ stdenv, fetchFromGitHub, gtk3, numix-icon-theme, hicolor-icon-theme }:
|
2015-03-03 18:15:30 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-25 17:19:39 -08:00
|
|
|
pname = "numix-icon-theme-circle";
|
2020-08-14 22:25:06 -07:00
|
|
|
version = "20.07.11";
|
2015-03-03 18:15:30 -08:00
|
|
|
|
2015-09-11 05:28:02 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numixproject";
|
2019-01-25 17:19:39 -08:00
|
|
|
repo = pname;
|
2017-09-20 03:01:18 -07:00
|
|
|
rev = version;
|
2020-08-14 22:25:06 -07:00
|
|
|
sha256 = "0vj3d3wb12ksnkm99s32k7nrf9m5j83zzvkd0rwk8l0b30df975j";
|
2015-03-03 18:15:30 -08:00
|
|
|
};
|
|
|
|
|
2020-02-19 03:58:09 -08:00
|
|
|
nativeBuildInputs = [ gtk3 ];
|
2015-03-03 18:15:30 -08:00
|
|
|
|
2020-04-16 05:29:46 -07:00
|
|
|
propagatedBuildInputs = [ numix-icon-theme hicolor-icon-theme ];
|
2019-09-12 07:47:48 -07:00
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2015-03-03 18:15:30 -08:00
|
|
|
installPhase = ''
|
2020-04-16 05:29:46 -07:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp -a Numix-Circle{,-Light} $out/share/icons
|
2016-11-11 02:25:16 -08:00
|
|
|
|
2019-11-17 03:23:49 -08: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 02:26:25 -08:00
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
2020-04-16 05:29:46 -07:00
|
|
|
|
|
|
|
runHook postInstall
|
2018-03-04 02:26:25 -08:00
|
|
|
'';
|
|
|
|
|
2015-09-11 05:25:29 -07:00
|
|
|
meta = with stdenv.lib; {
|
2015-03-03 18:15:30 -08:00
|
|
|
description = "Numix icon theme (circle version)";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://numixproject.github.io";
|
2015-09-11 05:25:29 -07:00
|
|
|
license = licenses.gpl3;
|
2018-08-20 17:29:02 -07:00
|
|
|
# darwin cannot deal with file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2019-10-01 05:54:49 -07:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2015-03-03 18:15:30 -08:00
|
|
|
};
|
|
|
|
}
|