tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
libunistring: 0.9.3 -> 0.9.6
William A. Kennington III
10 years ago
07ba2990
bf32753c
+9
-25
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libunistring
default.nix
+9
-25
pkgs/development/libraries/libunistring/default.nix
···
1
1
{ fetchurl, stdenv, libiconv }:
2
2
3
3
-
stdenv.mkDerivation (rec {
4
4
-
name = "libunistring-0.9.3";
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "libunistring-0.9.6";
5
5
6
6
src = fetchurl {
7
7
url = "mirror://gnu/libunistring/${name}.tar.gz";
8
8
-
sha256 = "18q620269xzpw39dwvr9zpilnl2dkw5z5kz3mxaadnpv4k3kw3b1";
8
8
+
sha256 = "0ixxmgpgh2v8ifm6hbwsjxl023myk3dfnj7wnvmqjivza31fw9cn";
9
9
};
10
10
11
11
patches = stdenv.lib.optional stdenv.isDarwin [ ./clang.patch ];
12
12
13
13
-
propagatedBuildInputs =
14
14
-
stdenv.lib.optional ((! (stdenv ? glibc))
15
15
-
|| (stdenv ? cross &&
16
16
-
stdenv.cross.config == "i686-pc-mingw32"))
17
17
-
libiconv;
13
13
+
propagatedBuildInputs = [ libiconv ];
14
14
+
15
15
+
configureFlags = [
16
16
+
"--with-libiconv-prefix=${libiconv}"
17
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
21
-
doCheck = (stdenv ? glibc);
21
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
55
-
56
56
-
//
57
57
-
58
58
-
# On Cygwin Libtool is unable to find `libiconv.dll' if there's no explicit
59
59
-
# `-L/path/to/libiconv' argument on the linker's command line; and since it
60
60
-
# can't find the dll, it will only create a static library.
61
61
-
(if (stdenv ? glibc)
62
62
-
then {}
63
63
-
else { configureFlags = "--with-libiconv-prefix=${libiconv}"; })
64
64
-
65
65
-
//
66
66
-
67
67
-
# Don't run the native `strip' when cross-compiling.
68
68
-
(if (stdenv ? cross)
69
69
-
then { dontStrip = true; }
70
70
-
else { }))