Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 intltool, 6 pkg-config, 7 iconnamingutils, 8 imagemagick, 9 librsvg, 10 gtk, # any version 11 gnome-icon-theme, 12 hicolor-icon-theme, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "tango-icon-theme"; 17 version = "0.8.90"; 18 19 src = fetchurl { 20 url = "http://tango.freedesktop.org/releases/tango-icon-theme-${version}.tar.gz"; 21 sha256 = "13n8cpml71w6zfm2jz5fa7r1z18qlzk4gv07r6n1in2p5l1xi63f"; 22 }; 23 24 patches = [ ./rsvg-convert.patch ]; 25 26 nativeBuildInputs = [ 27 pkg-config 28 intltool 29 ]; 30 buildInputs = [ 31 iconnamingutils 32 imagemagick 33 librsvg 34 ]; 35 propagatedBuildInputs = [ 36 gnome-icon-theme 37 hicolor-icon-theme 38 ]; 39 # still missing parent icon themes: cristalsvg 40 41 dontDropIconThemeCache = true; 42 43 configureFlags = [ "--enable-png-creation" ]; 44 45 postInstall = '''${gtk.out}/bin/gtk-update-icon-cache' "$out/share/icons/Tango" ''; 46 47 meta = with lib; { 48 description = "Basic set of icons"; 49 homepage = "https://tango.freedesktop.org/Tango_Icon_Library"; 50 platforms = platforms.linux; 51 license = licenses.publicDomain; 52 }; 53}