forked from mirrors/nixpkgs
gnutls: only demand trousers on linux
This commit is contained in:
parent
5219d3e3d1
commit
be03eefc9c
|
@ -23,7 +23,9 @@ stdenv.mkDerivation rec {
|
||||||
# for the actual fix.
|
# for the actual fix.
|
||||||
enableParallelBuilding = !guileBindings;
|
enableParallelBuilding = !guileBindings;
|
||||||
|
|
||||||
buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp trousers unbound ]
|
buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp ]
|
||||||
|
++ stdenv.lib.optional stdenv.isLinux trousers
|
||||||
|
++ [ unbound ]
|
||||||
++ stdenv.lib.optional guileBindings guile;
|
++ stdenv.lib.optional guileBindings guile;
|
||||||
|
|
||||||
nativeBuildInputs = [ perl pkgconfig autoreconfHook ];
|
nativeBuildInputs = [ perl pkgconfig autoreconfHook ];
|
||||||
|
@ -33,7 +35,7 @@ stdenv.mkDerivation rec {
|
||||||
doCheck = (!stdenv.isFreeBSD && !stdenv.isDarwin);
|
doCheck = (!stdenv.isFreeBSD && !stdenv.isDarwin);
|
||||||
|
|
||||||
# Fixup broken libtool and pkgconfig files
|
# Fixup broken libtool and pkgconfig files
|
||||||
preFixup = ''
|
preFixup = stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||||
sed -e 's,-ltspi,-L${trousers}/lib -ltspi,' \
|
sed -e 's,-ltspi,-L${trousers}/lib -ltspi,' \
|
||||||
-e 's,-lz,-L${zlib}/lib -lz,' \
|
-e 's,-lz,-L${zlib}/lib -lz,' \
|
||||||
-e 's,-lgmp,-L${gmp}/lib -lgmp,' \
|
-e 's,-lgmp,-L${gmp}/lib -lgmp,' \
|
||||||
|
|
Loading…
Reference in a new issue