Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 libtool, 7 openssl, 8 expat, 9 pkg-config, 10 check, 11 zlib, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "libstrophe"; 16 version = "0.14.0"; 17 18 src = fetchFromGitHub { 19 owner = "strophe"; 20 repo = "libstrophe"; 21 rev = version; 22 hash = "sha256-53O8hHyw9y0Bzs+BpGouAxuSGJxh6NSNNWZqi7RHAsY="; 23 }; 24 25 nativeBuildInputs = [ 26 autoreconfHook 27 pkg-config 28 ]; 29 buildInputs = [ 30 openssl 31 expat 32 libtool 33 check 34 zlib 35 ]; 36 37 dontDisableStatic = true; 38 39 strictDeps = true; 40 41 doCheck = true; 42 43 meta = with lib; { 44 description = "Simple, lightweight C library for writing XMPP clients"; 45 longDescription = '' 46 libstrophe is a lightweight XMPP client library written in C. It has 47 minimal dependencies and is configurable for various environments. It 48 runs well on both Linux, Unix, and Windows based platforms. 49 ''; 50 homepage = "https://strophe.im/libstrophe/"; 51 changelog = "https://github.com/strophe/libstrophe/blob/${src.rev}/ChangeLog"; 52 license = with licenses; [ 53 gpl3Only 54 mit 55 ]; 56 platforms = platforms.unix; 57 maintainers = with maintainers; [ 58 devhell 59 flosse 60 ]; 61 }; 62}