nixpkgs/pkgs/servers/osmocom/osmo-mgw/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
933 B
Nix
Raw Normal View History

2023-04-19 06:56:33 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libosmocore
, libosmo-netif
, libosmoabis
}:
let
inherit (stdenv) isLinux;
in
stdenv.mkDerivation rec {
pname = "osmo-mgw";
2024-01-28 06:57:00 +00:00
version = "1.12.2";
2023-04-19 06:56:33 +00:00
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-mgw";
rev = version;
2024-01-28 06:57:00 +00:00
hash = "sha256-RE16qzL8CXjGzoDniB8gBF0fsIaWzDuIvpdQ/5vUdug=";
2023-04-19 06:56:33 +00:00
};
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";
mainProgram = "osmo-mgw";
2023-04-19 06:56:33 +00:00
homepage = "https://osmocom.org/projects/osmo-mgw";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ janik ];
platforms = lib.platforms.linux;
};
}