2023-04-19 09:13:43 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, libosmocore
|
|
|
|
, libosmoabis
|
|
|
|
, libosmo-netif
|
|
|
|
, libosmo-sccp
|
|
|
|
, osmo-mgw
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (stdenv) isLinux;
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "osmo-bsc";
|
2023-09-17 00:07:16 +02:00
|
|
|
version = "1.11.0";
|
2023-04-19 09:13:43 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmocom";
|
|
|
|
repo = "osmo-bsc";
|
2023-07-02 20:50:45 +02:00
|
|
|
rev = version;
|
2023-09-17 00:07:16 +02:00
|
|
|
hash = "sha256-9WXK2vw+SvAAaBzhpeB+sBux9cGWyPtJVczRfk4rI6E=";
|
2023-04-19 09:13:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
echo "${version}" > .tarball-version
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libosmocore
|
|
|
|
libosmoabis
|
|
|
|
libosmo-netif
|
|
|
|
libosmo-sccp
|
|
|
|
osmo-mgw
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "GSM Base Station Controller";
|
|
|
|
homepage = "https://projects.osmocom.org/projects/osmobsc";
|
|
|
|
license = lib.licenses.agpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ janik ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|