From 405fe5f5b2887f4ae5f02d85beb492cbd8e08ffe Mon Sep 17 00:00:00 2001 From: Janik H Date: Wed, 19 Apr 2023 15:05:47 +0200 Subject: [PATCH] osmo-bts: init at 1.6.0 --- pkgs/servers/osmocom/osmo-bts/default.nix | 51 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/servers/osmocom/osmo-bts/default.nix diff --git a/pkgs/servers/osmocom/osmo-bts/default.nix b/pkgs/servers/osmocom/osmo-bts/default.nix new file mode 100644 index 000000000000..c4a10f21abab --- /dev/null +++ b/pkgs/servers/osmocom/osmo-bts/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 003b14cad2c4..8b06c9e1a622 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32860,6 +32860,8 @@ with pkgs; 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 { };