lol

libunistring: 0.9.3 -> 0.9.6

+9 -25
+9 -25
pkgs/development/libraries/libunistring/default.nix
··· 1 1 { fetchurl, stdenv, libiconv }: 2 2 3 - stdenv.mkDerivation (rec { 4 - name = "libunistring-0.9.3"; 3 + stdenv.mkDerivation rec { 4 + name = "libunistring-0.9.6"; 5 5 6 6 src = fetchurl { 7 7 url = "mirror://gnu/libunistring/${name}.tar.gz"; 8 - sha256 = "18q620269xzpw39dwvr9zpilnl2dkw5z5kz3mxaadnpv4k3kw3b1"; 8 + sha256 = "0ixxmgpgh2v8ifm6hbwsjxl023myk3dfnj7wnvmqjivza31fw9cn"; 9 9 }; 10 10 11 11 patches = stdenv.lib.optional stdenv.isDarwin [ ./clang.patch ]; 12 12 13 - propagatedBuildInputs = 14 - stdenv.lib.optional ((! (stdenv ? glibc)) 15 - || (stdenv ? cross && 16 - stdenv.cross.config == "i686-pc-mingw32")) 17 - libiconv; 13 + propagatedBuildInputs = [ libiconv ]; 14 + 15 + configureFlags = [ 16 + "--with-libiconv-prefix=${libiconv}" 17 + ]; 18 18 19 19 # XXX: There are test failures on non-GNU systems, see 20 20 # http://lists.gnu.org/archive/html/bug-libunistring/2010-02/msg00004.html . 21 - doCheck = (stdenv ? glibc); 21 + doCheck = stdenv ? glibc; 22 22 23 23 meta = { 24 24 homepage = http://www.gnu.org/software/libunistring/; ··· 52 52 platforms = stdenv.lib.platforms.all; 53 53 }; 54 54 } 55 - 56 - // 57 - 58 - # On Cygwin Libtool is unable to find `libiconv.dll' if there's no explicit 59 - # `-L/path/to/libiconv' argument on the linker's command line; and since it 60 - # can't find the dll, it will only create a static library. 61 - (if (stdenv ? glibc) 62 - then {} 63 - else { configureFlags = "--with-libiconv-prefix=${libiconv}"; }) 64 - 65 - // 66 - 67 - # Don't run the native `strip' when cross-compiling. 68 - (if (stdenv ? cross) 69 - then { dontStrip = true; } 70 - else { }))