diff --git a/pkgs/development/libraries/librest/default.nix b/pkgs/development/libraries/librest/default.nix index abe53ff3692f..19f7ced5986f 100644 --- a/pkgs/development/libraries/librest/default.nix +++ b/pkgs/development/libraries/librest/default.nix @@ -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" ];