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