3
0
Fork 0
forked from mirrors/nixpkgs

libnice: support cross-compilation

This commit is contained in:
Rick van Schijndel 2021-08-23 21:22:40 +02:00
parent 4f8a79c4fe
commit ff8a5ba767

View file

@ -19,7 +19,8 @@ stdenv.mkDerivation rec {
pname = "libnice";
version = "0.1.18";
outputs = [ "bin" "out" "dev" "devdoc" ];
outputs = [ "bin" "out" "dev" ]
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
src = fetchurl {
url = "https://libnice.freedesktop.org/releases/${pname}-${version}.tar.gz";
@ -61,7 +62,8 @@ stdenv.mkDerivation rec {
];
mesonFlags = [
"-Dgtk_doc=enabled" # Disabled by default as of libnice-0.1.15
"-Dgtk_doc=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
"-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
];