liblxi: add darwin support
This commit is contained in:
parent
203d1517bf
commit
a0d9c89bba
|
@ -11,12 +11,17 @@ stdenv.mkDerivation rec {
|
||||||
owner = "lxi-tools";
|
owner = "lxi-tools";
|
||||||
repo = "liblxi";
|
repo = "liblxi";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-jS0huNkbyKrsJ3NkenrYtjkzLakOsTJpwlgSo98ribE=";
|
hash = "sha256-jS0huNkbyKrsJ3NkenrYtjkzLakOsTJpwlgSo98ribE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ meson ninja cmake pkg-config rpcsvc-proto ];
|
nativeBuildInputs = [ meson ninja cmake pkg-config rpcsvc-proto ];
|
||||||
|
|
||||||
buildInputs = [ libtirpc avahi libxml2 ];
|
buildInputs = lib.optionals (!stdenv.isDarwin) [
|
||||||
|
libtirpc
|
||||||
|
avahi
|
||||||
|
] ++ [
|
||||||
|
libxml2
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Library for communicating with LXI compatible instruments";
|
description = "Library for communicating with LXI compatible instruments";
|
||||||
|
@ -28,7 +33,7 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
homepage = "https://lxi-tools.github.io/";
|
homepage = "https://lxi-tools.github.io/";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
maintainers = [ maintainers.vq ];
|
maintainers = [ maintainers.vq ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue