From b475406db789413f7063b66c29ca31f3e8e74f4a Mon Sep 17 00:00:00 2001 From: Janik H Date: Wed, 19 Apr 2023 16:33:58 +0200 Subject: [PATCH] osmo-sip-connector: init at 1.6.2 --- .../osmocom/osmo-sip-connector/default.nix | 51 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/servers/osmocom/osmo-sip-connector/default.nix diff --git a/pkgs/servers/osmocom/osmo-sip-connector/default.nix b/pkgs/servers/osmocom/osmo-sip-connector/default.nix new file mode 100644 index 000000000000..10546e95328d --- /dev/null +++ b/pkgs/servers/osmocom/osmo-sip-connector/default.nix @@ -0,0 +1,51 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, sofia_sip +, glib +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-sip-connector"; + version = "1.6.2"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-sip-connector"; + rev = "${version}"; + hash = "sha256-vsPtNeh6Yi5fQb+E90OF4/Hnjl9T5nMf9EMBhzpIA2I="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + sofia_sip + glib + ]; + + enableParallelBuilding = true; + + meta = { + description = "This implements an interface between the MNCC (Mobile Network Call Control) interface of OsmoMSC (and also previously OsmoNITB) and SIP"; + homepage = "https://osmocom.org/projects/osmo-sip-conector"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51d6ef27d2a6..e7d09d85f9e6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32880,6 +32880,8 @@ with pkgs; osmo-sgsn = callPackage ../servers/osmocom/osmo-sgsn { }; + osmo-sip-connector = callPackage ../servers/osmocom/osmo-sip-connector { }; + osmscout-server = libsForQt5.callPackage ../applications/misc/osmscout-server { }; palemoon = callPackage ../applications/networking/browsers/palemoon { };