From f168d4993ee4b0e6838c9d7e6f09dddedbe1317e Mon Sep 17 00:00:00 2001 From: Janik H Date: Wed, 19 Apr 2023 13:25:42 +0200 Subject: [PATCH] osmo-hnbgw: init at 1.4.0 --- pkgs/servers/osmocom/osmo-hnbgw/default.nix | 59 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 61 insertions(+) create mode 100644 pkgs/servers/osmocom/osmo-hnbgw/default.nix diff --git a/pkgs/servers/osmocom/osmo-hnbgw/default.nix b/pkgs/servers/osmocom/osmo-hnbgw/default.nix new file mode 100644 index 000000000000..ecadc543c566 --- /dev/null +++ b/pkgs/servers/osmocom/osmo-hnbgw/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d473d8dbc14e..4d177d9acff9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32862,6 +32862,8 @@ with pkgs; osmo-hlr = callPackage ../servers/osmocom/osmo-hlr { }; + osmo-hnbgw = callPackage ../servers/osmocom/osmo-hnbgw { }; + osmo-iuh = callPackage ../servers/osmocom/osmo-iuh { }; osmo-mgw = callPackage ../servers/osmocom/osmo-mgw { };