2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-04-27 09:35:20 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lksctp-tools
|
|
|
|
, pkg-config
|
2023-05-24 13:37:59 +00:00
|
|
|
, libosmocore
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
pname = "libosmo-netif";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmocom";
|
2023-05-24 13:37:59 +00:00
|
|
|
repo = "libosmo-netif";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-NjclrjpgX2ZySxTTjdeiOTOXsOTESLmj2LY89goedKI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
echo "${version}" > .tarball-version
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
lksctp-tools
|
2023-05-24 13:37:59 +00:00
|
|
|
libosmocore
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-05-24 13:37:59 +00:00
|
|
|
description = "Osmocom network / socket interface library";
|
|
|
|
homepage = "https://osmocom.org/projects/libosmo-netif/wiki";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
janik
|
|
|
|
markuskowa
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|