Merge pull request #227131 from Janik-Haag/osmocom

This commit is contained in:
Lassulus 2023-05-15 14:44:20 +02:00 committed by GitHub
commit 7a4a5dfed8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 873 additions and 3 deletions

View file

@ -0,0 +1,42 @@
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, pkg-config
, talloc
}:
stdenv.mkDerivation rec {
pname = "libasn1c";
version = "0.9.35";
src = fetchFromGitHub {
owner = "osmocom";
repo = "libasn1c";
rev = version;
hash = "sha256-mi97sWo42U/02xv4QDyUTRh26cyxhcOV5npqCuWsUOc=";
};
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 ];
};
}

View file

@ -0,0 +1,44 @@
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, lksctp-tools
, pkg-config
, libosmocore
}:
stdenv.mkDerivation rec {
pname = "libosmo-netif";
version = "1.3.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "libosmo-netif";
rev = version;
hash = "sha256-PhGi/6JVO8tXxzfGwEKUB/GdrgCJkqROo26TPU+O9Sg=";
};
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 ];
};
}

View file

@ -0,0 +1,48 @@
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, lksctp-tools
, pkg-config
, libosmocore
, libosmo-netif
}:
stdenv.mkDerivation rec {
pname = "libosmo-sccp";
version = "1.7.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "libosmo-sccp";
rev = version;
hash = "sha256-ScJZke9iNmFc9XXqtRjb24ZzKfa5EYws5PDNhcZFb7U=";
};
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";
homepage = "https://osmocom.org/projects/libosmo-sccp";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ janik ];
};
}

View file

@ -0,0 +1,48 @@
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, pkg-config
, libosmocore
, ortp
, bctoolbox
}:
stdenv.mkDerivation rec {
pname = "libosmoabis";
version = "1.4.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "libosmo-abis";
rev = version;
hash = "sha256-RKJis0Ur3Y0LximNQl+hm6GENg8t2E1S++2c+63D2pQ=";
};
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 ];
};
}

View file

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, gnutls
@ -51,6 +52,9 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/osmocom/libosmocore";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ mog ];
maintainers = with maintainers; [
mog
janik
];
};
}

View file

@ -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.9.1";
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-bsc";
rev = "${version}";
hash = "sha256-oCHEWQjHG2JZdoisROukwRbpQq2cNAgC+1yOqsgx+As=";
};
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;
};
}

View file

@ -0,0 +1,51 @@
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libosmocore
, libosmoabis
, libosmo-netif
}:
let
inherit (stdenv) isLinux;
in
stdenv.mkDerivation rec {
pname = "osmo-bts";
version = "1.6.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-bts";
rev = "${version}";
hash = "sha256-RSWXWQn3DAPtThUbthyXrSFSQhHzKaH/m1f6/MCojzM=";
};
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;
};
}

View file

@ -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.1";
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-ggsn";
rev = "${version}";
hash = "sha256-j7Szh6lDZY9ji9VAdE3D73R/WBPDo85nVB8hr4HzO7M=";
};
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;
};
}

View file

@ -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.6.1";
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-hlr";
rev = "${version}";
hash = "sha256-lFIYoDaJbVcC0A0TukRO9KDTVx31WqPPz/Z3wACJBp0=";
};
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;
};
}

View file

@ -0,0 +1,59 @@
{ 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)";
homepage = "https://osmocom.org/projects/osmohnbgw";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ janik ];
platforms = lib.platforms.linux;
};
}

View file

@ -0,0 +1,59 @@
{ 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";
homepage = "https://osmocom.org/projects/osmo-hnodeb";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ janik ];
platforms = lib.platforms.linux;
};
}

View file

@ -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.4.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-iuh";
rev = "${version}";
hash = "sha256-AwLLfG+5JgvFSBddzyUQdPDFZOX1uQyDSyr4O/wTlgs=";
};
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;
};
}

View file

@ -0,0 +1,51 @@
{ 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;
};
}

View file

@ -0,0 +1,61 @@
{ 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.10.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-msc";
rev = "${version}";
hash = "sha256-CVyjSo+QFDLcow6XAcudhQ7LOnbCSHeYVTzTMh7KEwg=";
};
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;
};
}

View file

@ -0,0 +1,48 @@
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libosmocore
,
}:
let
inherit (stdenv) isLinux;
in
stdenv.mkDerivation rec {
pname = "osmo-pcu";
version = "1.2.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-pcu";
rev = "${version}";
hash = "sha256-wZLTDvqVxP0FXV0VQH5KuigwbgzBipwL5JkTDp5Mzrc=";
};
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";
homepage = "https://osmocom.org/projects/osmopcu";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ janik ];
platforms = lib.platforms.linux;
};
}

View file

@ -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.10.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "osmo-sgsn";
rev = "${version}";
hash = "sha256-tjExV8XigPEZ5gOCEoWfjhtGJVa5Ja3GHnpSovradak=";
};
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;
};
}

View file

@ -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;
};
}

View file

@ -21331,6 +21331,8 @@ with pkgs;
libarchive-qt = libsForQt5.callPackage ../development/libraries/libarchive-qt { };
libasn1c = callPackage ../servers/osmocom/libasn1c/default.nix { };
libasr = callPackage ../development/libraries/libasr { };
libass = callPackage ../development/libraries/libass { };
@ -22226,7 +22228,13 @@ with pkgs;
libosmium = callPackage ../development/libraries/libosmium { };
libosmocore = callPackage ../applications/misc/libosmocore { };
libosmoabis = callPackage ../servers/osmocom/libosmoabis { };
libosmocore = callPackage ../servers/osmocom/libosmocore { };
libosmo-netif = callPackage ../servers/osmocom/libosmo-netif { };
libosmo-sccp = callPackage ../servers/osmocom/libosmo-sccp { };
libosmo-abis = callPackage ../development/libraries/libosmo-abis { };
@ -33127,6 +33135,30 @@ with pkgs;
osmo = callPackage ../applications/office/osmo { };
osmo-bsc = callPackage ../servers/osmocom/osmo-bsc { };
osmo-bts = callPackage ../servers/osmocom/osmo-bts { };
osmo-ggsn = callPackage ../servers/osmocom/osmo-ggsn { };
osmo-hlr = callPackage ../servers/osmocom/osmo-hlr { };
osmo-hnbgw = callPackage ../servers/osmocom/osmo-hnbgw { };
osmo-hnodeb = callPackage ../servers/osmocom/osmo-hnodeb { };
osmo-iuh = callPackage ../servers/osmocom/osmo-iuh { };
osmo-mgw = callPackage ../servers/osmocom/osmo-mgw { };
osmo-msc = callPackage ../servers/osmocom/osmo-msc { };
osmo-pcu = callPackage ../servers/osmocom/osmo-pcu { };
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 { };