mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +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";
|
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 New Issue
Block a user