Merge pull request #224926 from amjoseph-nixpkgs/pr/libiio/cross

This commit is contained in:
Artturi 2023-04-08 23:30:07 +03:00 committed by GitHub
commit ef588c9324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,19 +37,19 @@ stdenv.mkDerivation rec {
flex
bison
pkg-config
];
python
] ++ lib.optional python.isPy3k python.pkgs.setuptools;
buildInputs = [
python
libxml2
libusb1
] ++ lib.optional python.isPy3k python.pkgs.setuptools
++ lib.optional avahiSupport avahi
] ++ lib.optional avahiSupport avahi
++ lib.optional stdenv.isLinux libaio
++ lib.optionals stdenv.isDarwin [ CFNetwork CoreServices ];
cmakeFlags = [
"-DUDEV_RULES_INSTALL_DIR=${placeholder "out"}/lib/udev/rules.d"
"-DPython_EXECUTABLE=${python.pythonForBuild.interpreter}"
"-DPYTHON_BINDINGS=on"
# osx framework is disabled,
# the linux-like directory structure is used for proper output splitting