2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, libosmocore
|
|
|
|
, ortp
|
|
|
|
, bctoolbox
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libosmoabis";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.5.2";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmocom";
|
|
|
|
repo = "libosmo-abis";
|
|
|
|
rev = version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-B3M6sqFPecMR4/uiJ93C5ZWlq9IVpQwXCu9GZ4twHJw=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "enable_dahdi=false" ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
echo "${version}" > .tarball-version
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libosmocore
|
|
|
|
ortp
|
|
|
|
bctoolbox
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Osmocom Abis interface library";
|
|
|
|
homepage = "https://github.com/osmocom/libosmo-abis";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
markuskowa
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|