about summary refs log tree commit diff
path: root/pkgs/by-name/li
diff options
context:
space:
mode:
authordevhell <devhell@mailfresser.de>2024-03-23 14:34:37 +0000
committerdevhell <devhell@mailfresser.de>2024-03-23 14:36:56 +0000
commit760688e21b2ccef160ec61f9003d9509de9726d1 (patch)
treea2aabfbd21d75755753a60d672ef51db360aa2b9 /pkgs/by-name/li
parentd462bfebeb7a538b2cdf926d013238fe123cd77b (diff)
libstrophe: move to by-name structure
Diffstat (limited to 'pkgs/by-name/li')
-rw-r--r--pkgs/by-name/li/libstrophe/package.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/li/libstrophe/package.nix b/pkgs/by-name/li/libstrophe/package.nix
new file mode 100644
index 0000000000000..880d468cae05f
--- /dev/null
+++ b/pkgs/by-name/li/libstrophe/package.nix
@@ -0,0 +1,43 @@
+{ lib, stdenv
+, fetchFromGitHub
+, autoreconfHook
+, libtool
+, openssl
+, expat
+, pkg-config
+, check
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libstrophe";
+  version = "0.12.3";
+
+  src = fetchFromGitHub {
+    owner = "strophe";
+    repo = pname;
+    rev = version;
+    sha256 = "EDgdKJ7wqUoThy0t1r39p2lbn64uvTDoIqNCzhpWnZ8=";
+  };
+
+  nativeBuildInputs = [ autoreconfHook pkg-config ];
+  buildInputs = [ openssl expat libtool check ];
+
+  dontDisableStatic = true;
+
+  doCheck = true;
+
+  meta = with lib; {
+    description = "A simple, lightweight C library for writing XMPP clients";
+    longDescription = ''
+      libstrophe is a lightweight XMPP client library written in C. It has
+      minimal dependencies and is configurable for various environments. It
+      runs well on both Linux, Unix, and Windows based platforms.
+    '';
+    homepage = "https://strophe.im/libstrophe/";
+    license = with licenses; [ gpl3Only mit ];
+    platforms = platforms.unix;
+    broken = stdenv.isDarwin;
+    maintainers = with maintainers; [ devhell flosse ];
+  };
+}
+