gnutls: fix on Darwin
nettools is only used during checkPhase, and we don't do that on Darwin anyway. Close #16783; we don't change hashes on Linux contrary to the PR.
This commit is contained in:
parent
599cf0fe50
commit
5148c6c5c0
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
# Version dependent args
|
# Version dependent args
|
||||||
, version, src, patches ? [], postPatch ? "", nativeBuildInputs ? []
|
, version, src, patches ? [], postPatch ? "", nativeBuildInputs ? []
|
||||||
, ...}:
|
, ...}@args:
|
||||||
|
|
||||||
assert guileBindings -> guile != null;
|
assert guileBindings -> guile != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "gnutls-${version}";
|
name = "gnutls-${version}";
|
||||||
|
|
||||||
inherit src patches;
|
inherit src patches;
|
||||||
|
@ -19,7 +19,7 @@ stdenv.mkDerivation {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed '2iecho "name constraints tests skipped due to datefudge problems"\nexit 0' \
|
sed '2iecho "name constraints tests skipped due to datefudge problems"\nexit 0' \
|
||||||
-i tests/cert-tests/name-constraints
|
-i tests/cert-tests/name-constraints
|
||||||
'' + postPatch;
|
'' + args.postPatch;
|
||||||
|
|
||||||
preConfigure = "patchShebangs .";
|
preConfigure = "patchShebangs .";
|
||||||
configureFlags =
|
configureFlags =
|
||||||
|
@ -35,13 +35,14 @@ stdenv.mkDerivation {
|
||||||
# for the actual fix.
|
# for the actual fix.
|
||||||
enableParallelBuilding = !guileBindings;
|
enableParallelBuilding = !guileBindings;
|
||||||
|
|
||||||
buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp autogen nettools ]
|
buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp autogen ]
|
||||||
|
++ lib.optional doCheck nettools
|
||||||
++ lib.optional (stdenv.isFreeBSD || stdenv.isDarwin) libiconv
|
++ lib.optional (stdenv.isFreeBSD || stdenv.isDarwin) libiconv
|
||||||
++ lib.optional (tpmSupport && stdenv.isLinux) trousers
|
++ lib.optional (tpmSupport && stdenv.isLinux) trousers
|
||||||
++ [ unbound ]
|
++ [ unbound ]
|
||||||
++ lib.optional guileBindings guile;
|
++ lib.optional guileBindings guile;
|
||||||
|
|
||||||
nativeBuildInputs = [ perl pkgconfig ] ++ nativeBuildInputs;
|
nativeBuildInputs = [ perl pkgconfig ] ++ args.nativeBuildInputs;
|
||||||
|
|
||||||
# XXX: Gnulib's `test-select' fails on FreeBSD:
|
# XXX: Gnulib's `test-select' fails on FreeBSD:
|
||||||
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
|
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
|
||||||
|
|
Loading…
Reference in New Issue