about summary refs log tree commit diff
path: root/pkgs/servers/osmocom
diff options
context:
space:
mode:
authorJanik H <janik@aq0.de>2023-04-18 19:10:34 +0200
committerJanik H <janik@aq0.de>2023-04-19 22:10:49 +0200
commit7de385c2d2b0d36dda806c8977cd4ea5667c8dfc (patch)
tree5c70c07f08908e1e8537159378658f6491831f27 /pkgs/servers/osmocom
parent5bff386ace6ee1f6caeb39fe8c017f96a642cd47 (diff)
libosmoabis: init at 1.4.0
Diffstat (limited to 'pkgs/servers/osmocom')
-rw-r--r--pkgs/servers/osmocom/libosmoabis/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/servers/osmocom/libosmoabis/default.nix b/pkgs/servers/osmocom/libosmoabis/default.nix
new file mode 100644
index 0000000000000..1f55017d1892e
--- /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 ];
+  };
+}