diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-01-26 12:20:11 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-03-02 14:41:51 +0000 |
commit | 69b87ae0ec53ab876263ce5bae4bc7fd9bf3aa4c (patch) | |
tree | a6f65d96177a6c47e280f0b4f47caf6ac0783bd2 /pkgs | |
parent | 98580952f5b52eb512f38715cb43cf8cf8243646 (diff) | |
download | nixpkgs-69b87ae0ec53ab876263ce5bae4bc7fd9bf3aa4c.tar nixpkgs-69b87ae0ec53ab876263ce5bae4bc7fd9bf3aa4c.tar.gz nixpkgs-69b87ae0ec53ab876263ce5bae4bc7fd9bf3aa4c.tar.bz2 nixpkgs-69b87ae0ec53ab876263ce5bae4bc7fd9bf3aa4c.tar.lz nixpkgs-69b87ae0ec53ab876263ce5bae4bc7fd9bf3aa4c.tar.xz nixpkgs-69b87ae0ec53ab876263ce5bae4bc7fd9bf3aa4c.tar.zst nixpkgs-69b87ae0ec53ab876263ce5bae4bc7fd9bf3aa4c.zip |
libsoup_3: re-disable introspection if no emulator
e.g. when cross compiling from Linux to FreeBSD.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libsoup/3.x.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/libraries/libsoup/3.x.nix b/pkgs/development/libraries/libsoup/3.x.nix index 62abb162b00..2ea9978ed48 100644 --- a/pkgs/development/libraries/libsoup/3.x.nix +++ b/pkgs/development/libraries/libsoup/3.x.nix @@ -9,7 +9,9 @@ , libsysprof-capture , sqlite , glib-networking +, buildPackages , gobject-introspection +, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages , vala , libpsl , python3 @@ -22,7 +24,7 @@ stdenv.mkDerivation rec { pname = "libsoup"; version = "3.2.2"; - outputs = [ "out" "dev" "devdoc" ]; + outputs = [ "out" "dev" ] ++ lib.optional withIntrospection "devdoc"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; @@ -39,6 +41,7 @@ stdenv.mkDerivation rec { pkg-config glib python3 + ] ++ lib.optionals withIntrospection [ gi-docgen gobject-introspection vala @@ -61,15 +64,16 @@ stdenv.mkDerivation rec { mesonFlags = [ "-Dtls_check=false" # glib-networking is a runtime dependency, not a compile-time dependency "-Dgssapi=disabled" - "-Dvapi=enabled" - "-Dintrospection=enabled" "-Dntlm=disabled" # Requires wstest from autobahn-testsuite. "-Dautobahn=disabled" # Requires gnutls, not added for closure size. "-Dpkcs11_tests=disabled" - ] ++ lib.optionals (!stdenv.isLinux) [ - "-Dsysprof=disabled" + + (lib.mesonEnable "docs" withIntrospection) + (lib.mesonEnable "introspection" withIntrospection) + (lib.mesonEnable "sysprof" stdenv.isLinux) + (lib.mesonEnable "vapi" withIntrospection) ]; # TODO: For some reason the pkg-config setup hook does not pick this up. |