Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv 2, fetchFromGitHub 3, autoreconfHook 4, libtool 5, openssl 6, expat 7, pkg-config 8, check 9}: 10 11stdenv.mkDerivation rec { 12 pname = "libstrophe"; 13 version = "0.12.2"; 14 15 src = fetchFromGitHub { 16 owner = "strophe"; 17 repo = pname; 18 rev = version; 19 sha256 = "sha256-jT4VIqqUldCj3Rsb5MC74WXYQyTqOZxzFADf47TBV8c="; 20 }; 21 22 nativeBuildInputs = [ autoreconfHook pkg-config ]; 23 buildInputs = [ openssl expat libtool check ]; 24 25 dontDisableStatic = true; 26 27 doCheck = true; 28 29 meta = with lib; { 30 description = "A simple, lightweight C library for writing XMPP clients"; 31 longDescription = '' 32 libstrophe is a lightweight XMPP client library written in C. It has 33 minimal dependencies and is configurable for various environments. It 34 runs well on both Linux, Unix, and Windows based platforms. 35 ''; 36 homepage = "https://strophe.im/libstrophe/"; 37 license = with licenses; [ gpl3Only mit ]; 38 platforms = platforms.unix; 39 broken = stdenv.isDarwin; 40 maintainers = with maintainers; [ devhell flosse ]; 41 }; 42} 43