d34f728c2f
* numix-icon-theme: reformat nix expression * numix-icon-theme: add update script * numix-icon-theme: 21.10.31 -> 22.08.16 * numix-icon-theme: add missing parent themes
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, gtk3
|
|
, adwaita-icon-theme
|
|
, breeze-icons
|
|
, gnome-icon-theme
|
|
, hicolor-icon-theme
|
|
, gitUpdater
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "numix-icon-theme";
|
|
version = "22.08.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "numixproject";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-EveIr5XYyQYhz0AqZQBql3j0LnD8taNdzB/6IV7Mz2k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gtk3
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
adwaita-icon-theme
|
|
breeze-icons
|
|
gnome-icon-theme
|
|
hicolor-icon-theme
|
|
];
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
substituteInPlace Numix/index.theme --replace Breeze breeze
|
|
|
|
mkdir -p $out/share/icons
|
|
cp -a Numix{,-Light} $out/share/icons/
|
|
|
|
for theme in $out/share/icons/*; do
|
|
gtk-update-icon-cache $theme
|
|
done
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater { inherit pname version; };
|
|
|
|
meta = with lib; {
|
|
description = "Numix icon theme";
|
|
homepage = "https://numixproject.github.io";
|
|
license = licenses.gpl3Only;
|
|
# darwin cannot deal with file names differing only in case
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ romildo ];
|
|
};
|
|
}
|