about summary refs log tree commit diff
path: root/pkgs/development/libraries/libosmo-sccp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libosmo-sccp/default.nix')
-rw-r--r--pkgs/development/libraries/libosmo-sccp/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libosmo-sccp/default.nix b/pkgs/development/libraries/libosmo-sccp/default.nix
new file mode 100644
index 0000000000000..0c3878101066d
--- /dev/null
+++ b/pkgs/development/libraries/libosmo-sccp/default.nix
@@ -0,0 +1,38 @@
+{ lib, stdenv, fetchgit, autoreconfHook, pkg-config
+, libosmocore, libosmo-netif, lksctp-tools
+}:
+
+
+stdenv.mkDerivation rec {
+  pname = "libosmo-sccp";
+  version = "1.7.0";
+
+  src = fetchgit {
+    url = "https://gitea.osmocom.org/osmocom/libosmo-sccp";
+    rev = version;
+    sha256 = "sha256-ScJZke9iNmFc9XXqtRjb24ZzKfa5EYws5PDNhcZFb7U=";
+  };
+
+  postPatch = ''
+    echo "${version}" > .tarball-version
+  '';
+
+  nativeBuildInputs = [
+    autoreconfHook
+    pkg-config
+  ];
+
+  buildInputs = [
+    libosmocore
+    libosmo-netif
+    lksctp-tools
+  ];
+
+  meta = with lib; {
+    description = "Implementation of telecom signaling protocols and OsmoSTP";
+    homepage = "https://osmocom.org/projects/osmo-stp/wiki";
+    maintainers = [ maintainers.markuskowa ];
+    platforms = platforms.linux;
+    license = licenses.agpl3Only;
+  };
+}