diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/osmocom')
17 files changed, 908 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/osmocom/libasn1c/default.nix b/nixpkgs/pkgs/servers/osmocom/libasn1c/default.nix new file mode 100644 index 000000000000..11374fa055dd --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/libasn1c/default.nix @@ -0,0 +1,42 @@ +{ lib +, stdenv +, autoreconfHook +, fetchFromGitHub +, pkg-config +, talloc +}: + +stdenv.mkDerivation rec { + pname = "libasn1c"; + version = "0.9.36"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "libasn1c"; + rev = version; + hash = "sha256-Qh4QVssHS6XDfHJBR+y8J5tUhT/6tDg+aF9nX6UAGV8="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + talloc + ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "Runtime library of Lev Walkin's asn1c split out as separate library"; + homepage = "github.com/osmocom/libasn1c/"; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = with maintainers; [ janik ]; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/libosmo-netif/default.nix b/nixpkgs/pkgs/servers/osmocom/libosmo-netif/default.nix new file mode 100644 index 000000000000..256fdeee4148 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/libosmo-netif/default.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, autoreconfHook +, fetchFromGitHub +, lksctp-tools +, pkg-config +, libosmocore +}: + +stdenv.mkDerivation rec { + pname = "libosmo-netif"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "libosmo-netif"; + rev = version; + hash = "sha256-NjclrjpgX2ZySxTTjdeiOTOXsOTESLmj2LY89goedKI="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + lksctp-tools + libosmocore + ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "Osmocom network / socket interface library"; + homepage = "https://osmocom.org/projects/libosmo-netif/wiki"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ + janik + markuskowa + ]; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/libosmo-sccp/default.nix b/nixpkgs/pkgs/servers/osmocom/libosmo-sccp/default.nix new file mode 100644 index 000000000000..d8a27e2704fe --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/libosmo-sccp/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, autoreconfHook +, fetchFromGitHub +, lksctp-tools +, pkg-config +, libosmocore +, libosmo-netif +}: + +stdenv.mkDerivation rec { + pname = "libosmo-sccp"; + version = "1.8.1"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "libosmo-sccp"; + rev = version; + hash = "sha256-GrC++v7PCAnaEtMFt+el/ct2g+/9Axev04g/jMIGyOQ="; + }; + + configureFlags = [ "--with-systemdsystemunitdir=$out" ]; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + lksctp-tools + libosmocore + libosmo-netif + ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "SCCP + SIGTRAN (SUA/M3UA) libraries as well as OsmoSTP"; + mainProgram = "osmo-stp"; + homepage = "https://osmocom.org/projects/libosmo-sccp"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ + janik + markuskowa + ]; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/libosmoabis/default.nix b/nixpkgs/pkgs/servers/osmocom/libosmoabis/default.nix new file mode 100644 index 000000000000..3908534efe93 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/libosmoabis/default.nix @@ -0,0 +1,51 @@ +{ lib +, stdenv +, autoreconfHook +, fetchFromGitHub +, pkg-config +, libosmocore +, ortp +, bctoolbox +}: + +stdenv.mkDerivation rec { + pname = "libosmoabis"; + version = "1.5.0"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "libosmo-abis"; + rev = version; + hash = "sha256-AtBv3llE7TX1tBBE4BQ4gXFs2WNqgjNDkezRpoDoHbg="; + }; + + configureFlags = [ "enable_dahdi=false" ]; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + ortp + bctoolbox + ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "Osmocom Abis interface library"; + homepage = "https://github.com/osmocom/libosmo-abis"; + license = licenses.gpl3Only; + platforms = platforms.linux; + maintainers = with maintainers; [ + janik + markuskowa + ]; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/libosmocore/default.nix b/nixpkgs/pkgs/servers/osmocom/libosmocore/default.nix new file mode 100644 index 000000000000..acc72975617f --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/libosmocore/default.nix @@ -0,0 +1,62 @@ +{ lib +, stdenv +, autoreconfHook +, fetchFromGitHub +, gnutls +, libmnl +, liburing +, libusb1 +, lksctp-tools +, pcsclite +, pkg-config +, python3 +, talloc +}: + +stdenv.mkDerivation rec { + pname = "libosmocore"; + version = "1.9.2"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "libosmocore"; + rev = version; + hash = "sha256-rbdn7MiB0tluHgdQz1XpcQsN5FU8eGhmetzXzFAiCLg="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + propagatedBuildInputs = [ + talloc + libmnl + ]; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + python3 + ]; + + buildInputs = [ + gnutls + liburing + libusb1 + lksctp-tools + pcsclite + ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "Set of Osmocom core libraries"; + homepage = "https://github.com/osmocom/libosmocore"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ + mog + janik + ]; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-bsc/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-bsc/default.nix new file mode 100644 index 000000000000..1f9a6cabbf18 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-bsc/default.nix @@ -0,0 +1,55 @@ +{ 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; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-bts/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-bts/default.nix new file mode 100644 index 000000000000..42a214f7ce45 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-bts/default.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, libosmoabis +, libosmo-netif +}: + +stdenv.mkDerivation rec { + pname = "osmo-bts"; + version = "1.7.2"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-bts"; + rev = version; + hash = "sha256-dje+B1jobsVdQZYyIkLTZzez4HQirCcjyosTQCo/v64="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + libosmoabis + libosmo-netif + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom GSM Base Transceiver Station (BTS)"; + homepage = "https://osmocom.org/projects/osmobts"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-ggsn/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-ggsn/default.nix new file mode 100644 index 000000000000..7fd45d86b5bd --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-ggsn/default.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-ggsn"; + version = "1.10.2"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-ggsn"; + rev = version; + hash = "sha256-673qQgymMAKsdunwWhELo2etKqkdCvxR7B8VgmXkEEA="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom Gateway GPRS Support Node (GGSN), successor of OpenGGSN"; + homepage = "https://osmocom.org/projects/openggsn"; + license = lib.licenses.gpl2Only; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-hlr/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-hlr/default.nix new file mode 100644 index 000000000000..6dce9cd84d40 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-hlr/default.nix @@ -0,0 +1,51 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, libosmoabis +, sqlite +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-hlr"; + version = "1.7.0"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-hlr"; + rev = version; + hash = "sha256-snl4Ezvz28NJEjHwb68V+W3MvMJjkFvc/AlGaeSyiXc="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + libosmoabis + sqlite + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom implementation of 3GPP Home Location Registr (HLR)"; + homepage = "https://osmocom.org/projects/osmo-hlr"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-hnbgw/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-hnbgw/default.nix new file mode 100644 index 000000000000..30f0923073cb --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-hnbgw/default.nix @@ -0,0 +1,60 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, lksctp-tools +, libosmo-netif +, libasn1c +, libosmo-sccp +, osmo-iuh +, osmo-mgw +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-hnbgw"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-hnbgw"; + rev = version; + hash = "sha256-OWCAiU4mK57e5gm6QOovwmoFAaCG1d8ZYpkP4isIqvI="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + lksctp-tools + libosmo-netif + libasn1c + libosmo-sccp + osmo-iuh + osmo-mgw + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom Home NodeB Gateway, for attaching femtocells to the 3G CN (OsmoMSC, OsmoSGSN)"; + mainProgram = "osmo-hnbgw"; + homepage = "https://osmocom.org/projects/osmohnbgw"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-hnodeb/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-hnodeb/default.nix new file mode 100644 index 000000000000..95dd6bf72b70 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-hnodeb/default.nix @@ -0,0 +1,60 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, lksctp-tools +, libasn1c +, libosmoabis +, libosmo-netif +, libosmo-sccp +, osmo-iuh +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-hnodeb"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-hnodeb"; + rev = version; + hash = "sha256-Izivyw2HqRmrM68ehGqlIkJeuZ986d1WQ0yr6NWWTdA="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + lksctp-tools + libasn1c + libosmoabis + libosmo-netif + libosmo-sccp + osmo-iuh + ]; + + enableParallelBuilding = true; + + meta = { + description = "(upper layers of) HomeNodeB"; + mainProgram = "osmo-hnodeb"; + homepage = "https://osmocom.org/projects/osmo-hnodeb"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-iuh/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-iuh/default.nix new file mode 100644 index 000000000000..56a94efbb02c --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-iuh/default.nix @@ -0,0 +1,62 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, lksctp-tools +, libosmo-netif +, libosmo-sccp +, libasn1c +, python3 +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-iuh"; + version = "1.5.1"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-iuh"; + rev = version; + hash = "sha256-1G5N74N3BH+XP4hr+w0a1wc2DaE/GXpSu3JiPo8UBhI="; + }; + + prePatch = '' + substituteInPlace src/../asn1/utils/asn1tostruct.py \ + --replace '#!/usr/bin/env python3' '#!${python3}/bin/python3' + ''; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + python3 + ]; + + buildInputs = [ + libosmocore + lksctp-tools + libosmo-netif + libosmo-sccp + libasn1c + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom IuH library"; + homepage = "https://osmocom.org/projects/osmohnbgw/wiki"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-mgw/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-mgw/default.nix new file mode 100644 index 000000000000..939f062a7b4f --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-mgw/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, libosmo-netif +, libosmoabis +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-mgw"; + version = "1.12.2"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-mgw"; + rev = version; + hash = "sha256-RE16qzL8CXjGzoDniB8gBF0fsIaWzDuIvpdQ/5vUdug="; + }; + + 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"; + homepage = "https://osmocom.org/projects/osmo-mgw"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-msc/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-msc/default.nix new file mode 100644 index 000000000000..da6e719707ef --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-msc/default.nix @@ -0,0 +1,62 @@ +{ 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"; + version = "1.11.1"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-msc"; + rev = version; + hash = "sha256-JsfZUkXCpyLucaj0NL+MRCr2sWSCbuZRsipi4O7kFRQ="; + }; + + 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)"; + mainProgram = "osmo-msc"; + homepage = "https://osmocom.org/projects/osmomsc/wiki"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-pcu/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-pcu/default.nix new file mode 100644 index 000000000000..13b34b67b333 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-pcu/default.nix @@ -0,0 +1,49 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-pcu"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-pcu"; + rev = version; + hash = "sha256-rE5/wtzABEd6OVSRVrBvIJuo/CSfK19nf7tm+QQzljY="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom Packet control Unit (PCU): Network-side GPRS (RLC/MAC); BTS- or BSC-colocated"; + mainProgram = "osmo-pcu"; + homepage = "https://osmocom.org/projects/osmopcu"; + license = lib.licenses.gpl2Only; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-sgsn/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-sgsn/default.nix new file mode 100644 index 000000000000..9fda8abc5af1 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-sgsn/default.nix @@ -0,0 +1,57 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, libosmoabis +, libosmo-netif +, osmo-hlr +, osmo-ggsn +, c-ares +}: + +let + inherit (stdenv) isLinux; +in + +stdenv.mkDerivation rec { + pname = "osmo-ggsn"; + version = "1.11.0"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-sgsn"; + rev = version; + hash = "sha256-jI82LS/WubFAkxBVF31qH4NWSmjC94dL73oOu3shfdU="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + libosmoabis + libosmo-netif + osmo-hlr + osmo-ggsn + c-ares + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom implementation of the 3GPP Serving GPRS Support Node (SGSN)"; + homepage = "https://osmocom.org/projects/osmosgsn"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-sip-connector/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-sip-connector/default.nix new file mode 100644 index 000000000000..0a5ab9ab9fd5 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-sip-connector/default.nix @@ -0,0 +1,52 @@ +{ 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.3"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-sip-connector"; + rev = version; + hash = "sha256-5+bNqdQuobCwy99BLTIWLLNIpirMcb8w1xnIew5a9WE="; + }; + + 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"; + mainProgram = "osmo-sip-connector"; + homepage = "https://osmocom.org/projects/osmo-sip-conector"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} |