From 84fe5ccedb3793429b65d5f710ac8f086a471d42 Mon Sep 17 00:00:00 2001 From: Janik H Date: Tue, 18 Apr 2023 19:30:08 +0200 Subject: [PATCH] osmo-hlr: init at 1.6.1 --- pkgs/servers/osmocom/osmo-hlr/default.nix | 51 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/servers/osmocom/osmo-hlr/default.nix diff --git a/pkgs/servers/osmocom/osmo-hlr/default.nix b/pkgs/servers/osmocom/osmo-hlr/default.nix new file mode 100644 index 000000000000..8ecb1ad3780d --- /dev/null +++ b/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.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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d1b8db2f46d3..d3e4069b3c7e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32854,6 +32854,8 @@ with pkgs; osmo = callPackage ../applications/office/osmo { }; + osmo-hlr = callPackage ../servers/osmocom/osmo-hlr { }; + osmscout-server = libsForQt5.callPackage ../applications/misc/osmscout-server { }; palemoon = callPackage ../applications/networking/browsers/palemoon { };