Enable uriparser cross-compilation

This commit is contained in:
Travis Athougies 2018-11-22 20:00:54 -08:00
parent bcf736b325
commit 3963629193

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/;