diff options
author | Travis Athougies <travis@athougies.net> | 2018-11-22 20:00:54 -0800 |
---|---|---|
committer | Travis Athougies <travis@athougies.net> | 2018-11-22 20:00:54 -0800 |
commit | 3963629193965df8372f144e17c124fc420ab217 (patch) | |
tree | b1892177faed011f0d184e211e6f534e53552551 /pkgs/development/libraries/uriparser | |
parent | bcf736b325cbc577ed083995366396656e93e96c (diff) |
Enable uriparser cross-compilation
Diffstat (limited to 'pkgs/development/libraries/uriparser')
-rw-r--r-- | pkgs/development/libraries/uriparser/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/libraries/uriparser/default.nix b/pkgs/development/libraries/uriparser/default.nix index 03f8e20b38d03..ac9f67e1e1297 100644 --- a/pkgs/development/libraries/uriparser/default.nix +++ b/pkgs/development/libraries/uriparser/default.nix @@ -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/; |