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