gnutls: fixup evaluation after 5148c6c5c0
Noticed on: https://github.com/NixOS/nixpkgs/commit/5148c6c5c0#commitcomment-18184261
This commit is contained in:
parent
340a5d6fbf
commit
7d94f57309
|
@ -4,11 +4,15 @@
|
||||||
|
|
||||||
# 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;
|
||||||
|
let
|
||||||
stdenv.mkDerivation rec {
|
# XXX: Gnulib's `test-select' fails on FreeBSD:
|
||||||
|
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
|
||||||
|
doCheck = (!stdenv.isFreeBSD && !stdenv.isDarwin);
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
name = "gnutls-${version}";
|
name = "gnutls-${version}";
|
||||||
|
|
||||||
inherit src patches;
|
inherit src patches;
|
||||||
|
@ -19,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||||
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
|
||||||
'' + args.postPatch;
|
'' + postPatch;
|
||||||
|
|
||||||
preConfigure = "patchShebangs .";
|
preConfigure = "patchShebangs .";
|
||||||
configureFlags =
|
configureFlags =
|
||||||
|
@ -35,18 +39,15 @@ 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 autogen ]
|
buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp autogen nettools ]
|
||||||
++ 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 ] ++ args.nativeBuildInputs;
|
nativeBuildInputs = [ perl pkgconfig ] ++ nativeBuildInputs;
|
||||||
|
|
||||||
# XXX: Gnulib's `test-select' fails on FreeBSD:
|
inherit doCheck;
|
||||||
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
|
|
||||||
doCheck = (!stdenv.isFreeBSD && !stdenv.isDarwin);
|
|
||||||
|
|
||||||
# Fixup broken libtool and pkgconfig files
|
# Fixup broken libtool and pkgconfig files
|
||||||
preFixup = lib.optionalString (!stdenv.isDarwin) ''
|
preFixup = lib.optionalString (!stdenv.isDarwin) ''
|
||||||
|
|
Loading…
Reference in New Issue