2019-09-12 15:47:48 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gtk3, numix-icon-theme, hicolor-icon-theme }:
|
2016-12-08 15:07:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-26 01:20:06 +00:00
|
|
|
pname = "numix-icon-theme-square";
|
2020-02-19 11:54:42 +00:00
|
|
|
version = "19.12.27";
|
2016-12-08 15:07:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numixproject";
|
2019-01-26 01:20:06 +00:00
|
|
|
repo = pname;
|
2017-09-20 11:10:44 +01:00
|
|
|
rev = version;
|
2020-02-19 11:54:42 +00:00
|
|
|
sha256 = "0pjbi2g7wk8gyr4lvp8fvcb8z29kc3l6v19a45axgadnc609hqw7";
|
2016-12-08 15:07:53 +00:00
|
|
|
};
|
|
|
|
|
2020-02-19 12:02:14 +00:00
|
|
|
nativeBuildInputs = [ gtk3 ];
|
2016-12-08 15:07:53 +00:00
|
|
|
|
2020-02-19 12:02:14 +00:00
|
|
|
buildInputs = [ numix-icon-theme ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ hicolor-icon-theme ];
|
2019-09-12 15:47:48 +01:00
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2016-12-08 15:07:53 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp -a Numix-Square{,-Light} $out/share/icons/
|
|
|
|
'';
|
|
|
|
|
2018-03-04 10:45:36 +00:00
|
|
|
postFixup = ''
|
2019-11-19 10:11:54 +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:45:36 +00:00
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2016-12-08 15:07:53 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Numix icon theme (square version)";
|
2018-09-07 23:32:30 +01:00
|
|
|
homepage = https://numixproject.github.io;
|
2016-12-08 15:07:53 +00:00
|
|
|
license = licenses.gpl3;
|
2018-08-21 01:38:41 +01:00
|
|
|
# darwin cannot deal with file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2016-12-08 15:07:53 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|