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

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

62 lines
1 KiB
Nix
Raw Normal View History

2023-04-19 09:01:22 +02:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libosmocore
, sqlite
, libosmoabis
, libosmo-netif
, libosmo-sccp
, osmo-mgw
, osmo-hlr
, lksctp-tools
}:
let
inherit (stdenv) isLinux;
in
stdenv.mkDerivation rec {
pname = "osmo-msc";
2023-09-17 00:16:21 +02:00
version = "1.11.0";
2023-04-19 09:01:22 +02:00
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-msc";
rev = version;
2023-09-17 00:16:21 +02:00
hash = "sha256-e36k/uEajtQ3cnqn+xvPQPGWuA8ILIlkjOkd96IOvow=";
2023-04-19 09:01:22 +02:00
};
postPatch = ''
echo "${version}" > .tarball-version
'';
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
libosmocore
sqlite
libosmoabis
libosmo-netif
libosmo-sccp
osmo-mgw
osmo-hlr
lksctp-tools
];
enableParallelBuilding = true;
meta = {
description = "Osmocom implementation of 3GPP Mobile Swtiching Centre (MSC)";
homepage = "https://osmocom.org/projects/osmomsc/wiki";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ janik ];
platforms = lib.platforms.linux;
};
}