Merge pull request #155374 from helsinki-systems/fix/uriparser-cross

uriparser: Fix cross building
This commit is contained in:
Dmitry Kalinkin 2022-01-17 10:32:34 -05:00 committed by GitHub
commit 51ba620724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,10 +14,10 @@ stdenv.mkDerivation rec {
cmakeFlags = [ cmakeFlags = [
"-DURIPARSER_BUILD_DOCS=OFF" "-DURIPARSER_BUILD_DOCS=OFF"
]; ] ++ lib.optional (!doCheck) "-DURIPARSER_BUILD_TESTS=OFF";
checkInputs = [ gtest ]; checkInputs = [ gtest ];
doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system; doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
meta = with lib; { meta = with lib; {
homepage = "https://uriparser.github.io/"; homepage = "https://uriparser.github.io/";