Merge pull request #199959 from amjoseph-nixpkgs/pr/libiio/avahiSupport
libiio: allow build on systems without avahi
This commit is contained in:
commit
2fe8fa4386
|
@ -6,7 +6,7 @@
|
||||||
, libxml2
|
, libxml2
|
||||||
, python
|
, python
|
||||||
, libusb1
|
, libusb1
|
||||||
, avahi
|
, avahiSupport ? true, avahi
|
||||||
, libaio
|
, libaio
|
||||||
, runtimeShell
|
, runtimeShell
|
||||||
, lib
|
, lib
|
||||||
|
@ -43,8 +43,8 @@ stdenv.mkDerivation rec {
|
||||||
python
|
python
|
||||||
libxml2
|
libxml2
|
||||||
libusb1
|
libusb1
|
||||||
avahi
|
|
||||||
] ++ lib.optional python.isPy3k python.pkgs.setuptools
|
] ++ lib.optional python.isPy3k python.pkgs.setuptools
|
||||||
|
++ 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 ];
|
||||||
|
|
||||||
|
@ -55,6 +55,8 @@ stdenv.mkDerivation rec {
|
||||||
# the linux-like directory structure is used for proper output splitting
|
# the linux-like directory structure is used for proper output splitting
|
||||||
"-DOSX_PACKAGE=off"
|
"-DOSX_PACKAGE=off"
|
||||||
"-DOSX_FRAMEWORK=off"
|
"-DOSX_FRAMEWORK=off"
|
||||||
|
] ++ lib.optionals (!avahiSupport) [
|
||||||
|
"-DHAVE_DNS_SD=OFF"
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
Loading…
Reference in a new issue