From 0c051ec4f2047c1fdb398fd5d11d7b97a5d0a23c Mon Sep 17 00:00:00 2001 From: Janik H Date: Wed, 19 Apr 2023 15:26:14 +0200 Subject: [PATCH] osmo-pcu: init at 1.2.0 --- pkgs/servers/osmocom/osmo-pcu/default.nix | 48 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/servers/osmocom/osmo-pcu/default.nix diff --git a/pkgs/servers/osmocom/osmo-pcu/default.nix b/pkgs/servers/osmocom/osmo-pcu/default.nix new file mode 100644 index 000000000000..99495d0dd1e8 --- /dev/null +++ b/pkgs/servers/osmocom/osmo-pcu/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8b06c9e1a622..c209e43ae7b4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32874,6 +32874,8 @@ with pkgs; osmo-msc = callPackage ../servers/osmocom/osmo-msc { }; + osmo-pcu = callPackage ../servers/osmocom/osmo-pcu { }; + osmo-sgsn = callPackage ../servers/osmocom/osmo-sgsn { }; osmscout-server = libsForQt5.callPackage ../applications/misc/osmscout-server { };