@@ -1,24 +1,24 @@
11{ fetchurl, stdenv, libiconv }:
22
3−stdenv.mkDerivation (rec {
4− name = "libunistring-0.9.3";
3+stdenv.mkDerivation rec {
4+ name = "libunistring-0.9.6";
55
66 src = fetchurl {
77 url = "mirror://gnu/libunistring/${name}.tar.gz";
8− sha256 = "18q620269xzpw39dwvr9zpilnl2dkw5z5kz3mxaadnpv4k3kw3b1";
8+ sha256 = "0ixxmgpgh2v8ifm6hbwsjxl023myk3dfnj7wnvmqjivza31fw9cn";
99 };
1010
1111 patches = stdenv.lib.optional stdenv.isDarwin [ ./clang.patch ];
1212
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+ ];
1818
1919 # XXX: There are test failures on non-GNU systems, see
2020 # http://lists.gnu.org/archive/html/bug-libunistring/2010-02/msg00004.html .
21− doCheck = (stdenv ? glibc);
21+ doCheck = stdenv ? glibc;
2222
2323 meta = {
2424 homepage = http://www.gnu.org/software/libunistring/;
@@ -52,19 +52,3 @@ stdenv.mkDerivation (rec {
5252 platforms = stdenv.lib.platforms.all;
5353 };
5454}
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 { }))