2022-07-16 18:07:05 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub, gtk3, numix-icon-theme, hicolor-icon-theme, gitUpdater }:
|
2015-03-04 02:15:30 +00:00
|
|
|
|
2022-07-02 00:04:21 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2019-01-26 01:19:39 +00:00
|
|
|
pname = "numix-icon-theme-circle";
|
2023-04-23 14:05:02 +00:00
|
|
|
version = "23.04.20";
|
2015-03-04 02:15:30 +00:00
|
|
|
|
2015-09-11 12:28:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numixproject";
|
2019-01-26 01:19:39 +00:00
|
|
|
repo = pname;
|
2017-09-20 10:01:18 +00:00
|
|
|
rev = version;
|
2023-04-23 14:05:02 +00:00
|
|
|
sha256 = "sha256-pc5GwxU4KP6PktPvuCYVzJORVmMvC8GdBPr7QSN2cM0=";
|
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-04-16 12:29:46 +00:00
|
|
|
propagatedBuildInputs = [ numix-icon-theme hicolor-icon-theme ];
|
2019-09-12 14:47:48 +00:00
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2015-03-04 02:15:30 +00:00
|
|
|
installPhase = ''
|
2020-04-16 12:29:46 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp -a Numix-Circle{,-Light} $out/share/icons
|
2016-11-11 10:25:16 +00:00
|
|
|
|
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
|
2020-04-16 12:29:46 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2018-03-04 10:26:25 +00:00
|
|
|
'';
|
|
|
|
|
2022-09-27 21:12:05 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-07-12 23:08:13 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-03-04 02:15:30 +00:00
|
|
|
description = "Numix icon theme (circle version)";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://numixproject.github.io";
|
2021-04-14 19:57:36 +00:00
|
|
|
license = licenses.gpl3Only;
|
2018-08-21 00:29:02 +00:00
|
|
|
# darwin cannot deal with file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2019-10-01 12:54:49 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2015-03-04 02:15:30 +00:00
|
|
|
};
|
|
|
|
}
|