bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
56 lines
962 B
Nix
56 lines
962 B
Nix
{ 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";
|
|
version = "1.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmocom";
|
|
repo = "osmo-bsc";
|
|
rev = version;
|
|
hash = "sha256-pMdQcIFWiawXYnmHSjTk+3YcZNMrv3qmgWr4gkTknJA=";
|
|
};
|
|
|
|
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;
|
|
mainProgram = "osmo-bsc";
|
|
};
|
|
}
|