libiio: fix cross compilation
This commit is contained in:
parent
c2f2239d92
commit
6685004cd5
|
@ -37,19 +37,19 @@ stdenv.mkDerivation rec {
|
||||||
flex
|
flex
|
||||||
bison
|
bison
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
python
|
||||||
|
] ++ lib.optional python.isPy3k python.pkgs.setuptools;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python
|
|
||||||
libxml2
|
libxml2
|
||||||
libusb1
|
libusb1
|
||||||
] ++ lib.optional python.isPy3k python.pkgs.setuptools
|
] ++ lib.optional avahiSupport avahi
|
||||||
++ lib.optional avahiSupport avahi
|
|
||||||
++ lib.optional stdenv.isLinux libaio
|
++ lib.optional stdenv.isLinux libaio
|
||||||
++ lib.optionals stdenv.isDarwin [ CFNetwork CoreServices ];
|
++ lib.optionals stdenv.isDarwin [ CFNetwork CoreServices ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DUDEV_RULES_INSTALL_DIR=${placeholder "out"}/lib/udev/rules.d"
|
"-DUDEV_RULES_INSTALL_DIR=${placeholder "out"}/lib/udev/rules.d"
|
||||||
|
"-DPython_EXECUTABLE=${python.pythonForBuild.interpreter}"
|
||||||
"-DPYTHON_BINDINGS=on"
|
"-DPYTHON_BINDINGS=on"
|
||||||
# osx framework is disabled,
|
# osx framework is disabled,
|
||||||
# the linux-like directory structure is used for proper output splitting
|
# the linux-like directory structure is used for proper output splitting
|
||||||
|
|
Loading…
Reference in a new issue