2022-08-18 18:38:48 +01:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, breeze-icons
|
|
|
|
, gnome-icon-theme
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2015-03-04 02:15:30 +00:00
|
|
|
|
2022-07-02 01:04:21 +01:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2018-02-24 11:31:11 +00:00
|
|
|
pname = "numix-icon-theme";
|
2023-12-17 07:10:12 +00:00
|
|
|
version = "23.12.02";
|
2015-03-04 02:15:30 +00:00
|
|
|
|
2015-07-15 03:16:06 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numixproject";
|
2018-02-24 11:31:11 +00:00
|
|
|
repo = pname;
|
2017-12-26 17:58:12 +00:00
|
|
|
rev = version;
|
2023-12-17 07:10:12 +00:00
|
|
|
sha256 = "sha256-ks2JJROSYzeDqq7i6Y4iJAB994ZRcDOGGRcCL3Dt1zI=";
|
2015-03-04 02:15:30 +00:00
|
|
|
};
|
|
|
|
|
2022-08-18 18:38:48 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
2019-09-12 15:47:48 +01:00
|
|
|
|
2022-08-18 18:38:48 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
adwaita-icon-theme
|
|
|
|
breeze-icons
|
|
|
|
gnome-icon-theme
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
2019-09-12 15:47:48 +01:00
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
2015-03-04 02:15:30 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-04-14 20:56:57 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
2022-08-18 18:38:48 +01:00
|
|
|
substituteInPlace Numix/index.theme --replace Breeze breeze
|
|
|
|
|
2018-02-24 11:31:11 +00:00
|
|
|
mkdir -p $out/share/icons
|
2019-10-01 13:47:21 +01:00
|
|
|
cp -a Numix{,-Light} $out/share/icons/
|
2018-02-24 11:31:11 +00:00
|
|
|
|
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
2021-04-14 20:56:57 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2015-03-04 02:15:30 +00:00
|
|
|
'';
|
2015-07-15 03:16:06 +01:00
|
|
|
|
2022-09-27 22:12:05 +01:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-08-18 18:38:48 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-03-04 02:15:30 +00:00
|
|
|
description = "Numix icon theme";
|
2020-03-30 06:50:39 +01:00
|
|
|
homepage = "https://numixproject.github.io";
|
2021-04-14 20:56:57 +01:00
|
|
|
license = licenses.gpl3Only;
|
2018-08-21 01:15:07 +01:00
|
|
|
# darwin cannot deal with file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2015-03-04 02:15:30 +00:00
|
|
|
};
|
|
|
|
}
|