diff options
author | Colin <colin@uninsane.org> | 2023-03-15 06:29:56 +0000 |
---|---|---|
committer | Colin <colin@uninsane.org> | 2023-04-07 03:26:26 +0000 |
commit | 38f82eb826a792d78ae836932513e000ff5d0d83 (patch) | |
tree | a89712c4c0d21f99471f6524cf8d482d61e207de /pkgs/development/libraries/libchamplain | |
parent | 4fa1ac3121138d45dc3949563fab44c8fb1f10f4 (diff) |
libchamplain: don't build docs when cross compiling
Diffstat (limited to 'pkgs/development/libraries/libchamplain')
-rw-r--r-- | pkgs/development/libraries/libchamplain/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libchamplain/default.nix b/pkgs/development/libraries/libchamplain/default.nix index 1eda49ad3f97d..ab8f187bf9eea 100644 --- a/pkgs/development/libraries/libchamplain/default.nix +++ b/pkgs/development/libraries/libchamplain/default.nix @@ -24,7 +24,8 @@ stdenv.mkDerivation rec { pname = "libchamplain"; version = "0.12.21"; - outputs = [ "out" "dev" "devdoc" ]; + outputs = [ "out" "dev" ] + ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; @@ -37,6 +38,7 @@ stdenv.mkDerivation rec { pkg-config gobject-introspection vala + ] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ gtk-doc docbook_xsl docbook_xml_dtd_412 @@ -55,7 +57,7 @@ stdenv.mkDerivation rec { ]; mesonFlags = [ - "-Dgtk_doc=true" + (lib.mesonBool "gtk_doc" (stdenv.buildPlatform == stdenv.hostPlatform)) "-Dvapi=true" (lib.mesonBool "libsoup3" withLibsoup3) ]; |