2022-04-25 01:47:04 +00:00
|
|
|
{ lib, stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gnutls
|
|
|
|
, libmnl
|
|
|
|
, libusb1
|
|
|
|
, lksctp-tools
|
|
|
|
, pcsclite
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, talloc
|
2016-08-26 15:57:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libosmocore";
|
2022-04-25 01:47:04 +00:00
|
|
|
version = "1.6.0";
|
2016-08-26 15:57:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmocom";
|
|
|
|
repo = "libosmocore";
|
2018-12-08 15:41:01 +00:00
|
|
|
rev = version;
|
2022-04-25 01:47:04 +00:00
|
|
|
hash = "sha256-AjOyZiLlXhsetbyMBuUssoNxk22LzGOkZpeLt4vKli4=";
|
2016-08-26 15:57:14 +00:00
|
|
|
};
|
|
|
|
|
2017-07-12 17:14:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
talloc
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-04-25 01:47:04 +00:00
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
python3
|
2017-07-12 17:14:07 +00:00
|
|
|
];
|
|
|
|
|
2016-08-26 15:57:14 +00:00
|
|
|
buildInputs = [
|
2022-04-25 01:47:04 +00:00
|
|
|
gnutls
|
|
|
|
libmnl
|
|
|
|
libusb1
|
|
|
|
lksctp-tools
|
|
|
|
pcsclite
|
2016-08-26 15:57:14 +00:00
|
|
|
];
|
|
|
|
|
2017-07-12 17:14:07 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-08-26 15:57:14 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "Set of Osmocom core libraries";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/osmocom/libosmocore";
|
2016-08-26 15:57:14 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-12-08 18:37:48 +00:00
|
|
|
platforms = platforms.linux;
|
2016-08-26 15:57:14 +00:00
|
|
|
maintainers = with maintainers; [ mog ];
|
|
|
|
};
|
|
|
|
}
|