gnutls: Don't run tests when cross-compiling

This commit is contained in:
Ben Gamari 2017-10-26 21:53:57 -04:00
parent de347ad65f
commit 3ed6239d6b

View File

@ -12,7 +12,8 @@ assert guileBindings -> guile != null;
let
# XXX: Gnulib's `test-select' fails on FreeBSD:
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
doCheck = !stdenv.isFreeBSD && !stdenv.isDarwin && lib.versionAtLeast version "3.4";
doCheck = !stdenv.isFreeBSD && !stdenv.isDarwin && lib.versionAtLeast version "3.4"
&& stdenv.buildPlatform == stdenv.hostPlatform;
in
stdenv.mkDerivation {
name = "gnutls-${version}";