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