Commit 2231d488 authored by Colin's avatar Colin
Browse files

librest (0.8): don't build docs when cross compiling

librest_1_0 supports cross compilation (in staging: https://github.com/NixOS/nixpkgs/pull/223142),
but the old 0.8 version still doesn't. unlike 1.0 -- which builds with
meson -- librest 0.8 uses autotools with no obvious way to tell
`configure` to use the native gtk-doc, so just skip docs for cross
builds of this older version.
parent c82580fd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ stdenv.mkDerivation rec {
  nativeBuildInputs = [
    pkg-config
    gobject-introspection
  ] ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [
    gtk-doc
    docbook-xsl-nons
    docbook_xml_dtd_412
@@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
  ];

  configureFlags = [
    "--enable-gtk-doc"
    (lib.enableFeature (stdenv.hostPlatform == stdenv.buildPlatform) "gtk-doc")
    # Remove when https://gitlab.gnome.org/GNOME/librest/merge_requests/2 is merged.
    "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"
  ];