9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
51 lines
903 B
Nix
51 lines
903 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, libosmocore
|
|
, libosmo-netif
|
|
, libosmoabis
|
|
}:
|
|
|
|
let
|
|
inherit (stdenv) isLinux;
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "osmo-mgw";
|
|
version = "1.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmocom";
|
|
repo = "osmo-mgw";
|
|
rev = version;
|
|
hash = "sha256-l7JBAigcqQdb1IIz2iuetK8EKVkevtei7hB98g4a79Y=";
|
|
};
|
|
|
|
postPatch = ''
|
|
echo "${version}" > .tarball-version
|
|
'';
|
|
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libosmocore
|
|
libosmo-netif
|
|
libosmoabis
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Osmocom Media Gateway (MGW). speaks RTP and E1 as well as MGCP";
|
|
homepage = "https://osmocom.org/projects/osmo-mgw";
|
|
license = lib.licenses.agpl3Plus;
|
|
maintainers = with lib.maintainers; [ janik ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|