mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Enable uriparser cross-compilation
This commit is contained in:
parent
bcf736b325
commit
3963629193
@ -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/;
|
||||
|
Loading…
Reference in New Issue
Block a user