Merge pull request #50937 from tathougies/travis/uriparser-cross

uriparser: Enable cross-compilation
This commit is contained in:
Jörg Thalheim 2018-11-23 09:54:04 +00:00 committed by GitHub
commit 8dca420161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gtest, pkgconfig, doxygen, graphviz }:
{ lib, stdenv, fetchurl, gtest, pkgconfig, doxygen, graphviz }:
stdenv.mkDerivation rec {
name = "uriparser-${version}";
@ -10,9 +10,11 @@ stdenv.mkDerivation rec {
sha256 = "0b2yagxzhq9ghpszci6a9xlqg0yl7vq9j5r8dwbar3nszqsfnrzc";
};
nativeBuildInputs = [ pkgconfig gtest doxygen graphviz ];
nativeBuildInputs = [ pkgconfig doxygen graphviz ];
buildInputs = lib.optional doCheck gtest;
configureFlags = lib.optional (!doCheck) "--disable-tests";
doCheck = true;
doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system;
meta = with stdenv.lib; {
homepage = https://uriparser.github.io/;