From 7de385c2d2b0d36dda806c8977cd4ea5667c8dfc Mon Sep 17 00:00:00 2001 From: Janik H Date: Tue, 18 Apr 2023 19:10:34 +0200 Subject: [PATCH] libosmoabis: init at 1.4.0 --- pkgs/servers/osmocom/libosmoabis/default.nix | 48 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/servers/osmocom/libosmoabis/default.nix diff --git a/pkgs/servers/osmocom/libosmoabis/default.nix b/pkgs/servers/osmocom/libosmoabis/default.nix new file mode 100644 index 000000000000..1f55017d1892 --- /dev/null +++ b/pkgs/servers/osmocom/libosmoabis/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 93678023cbfb..d1b8db2f46d3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22002,6 +22002,8 @@ with pkgs; libosmium = callPackage ../development/libraries/libosmium { }; + libosmoabis = callPackage ../servers/osmocom/libosmoabis { }; + libosmocore = callPackage ../servers/osmocom/libosmocore { }; libosmscout = libsForQt5.callPackage ../development/libraries/libosmscout { };