Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 62 lines 1.2 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 gtk3, 6 adwaita-icon-theme, 7 breeze-icons, 8 gnome-icon-theme, 9 hicolor-icon-theme, 10 gitUpdater, 11}: 12 13stdenvNoCC.mkDerivation rec { 14 pname = "numix-icon-theme"; 15 version = "25.01.31"; 16 17 src = fetchFromGitHub { 18 owner = "numixproject"; 19 repo = pname; 20 rev = version; 21 sha256 = "sha256-LON73XRVZQxbEMJ32qKXU/TYf6Q8nWU9wms7eT/DHa8="; 22 }; 23 24 nativeBuildInputs = [ 25 gtk3 26 ]; 27 28 propagatedBuildInputs = [ 29 adwaita-icon-theme 30 breeze-icons 31 gnome-icon-theme 32 hicolor-icon-theme 33 ]; 34 35 dontDropIconThemeCache = true; 36 37 installPhase = '' 38 runHook preInstall 39 40 substituteInPlace Numix/index.theme --replace Breeze breeze 41 42 mkdir -p $out/share/icons 43 cp -a Numix{,-Light} $out/share/icons/ 44 45 for theme in $out/share/icons/*; do 46 gtk-update-icon-cache $theme 47 done 48 49 runHook postInstall 50 ''; 51 52 passthru.updateScript = gitUpdater { }; 53 54 meta = with lib; { 55 description = "Numix icon theme"; 56 homepage = "https://numixproject.github.io"; 57 license = licenses.gpl3Only; 58 # darwin cannot deal with file names differing only in case 59 platforms = platforms.linux; 60 maintainers = with maintainers; [ romildo ]; 61 }; 62}