Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libxml2 }:
2
3stdenv.mkDerivation rec {
4 pname = "libqb";
5 version = "2.0.6";
6
7 src = fetchFromGitHub {
8 owner = "ClusterLabs";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-vt9FmIRojX3INOn3CXAjkswVFD8Th4sRIz3RR4GJHFQ=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15
16 buildInputs = [ libxml2 ];
17
18 postPatch = ''
19 sed -i '/# --enable-new-dtags:/,/--enable-new-dtags is required/ d' configure.ac
20 '';
21
22 meta = with lib; {
23 homepage = "https://github.com/clusterlabs/libqb";
24 description = "A library providing high performance logging, tracing, ipc, and poll";
25 license = licenses.lgpl21Plus;
26 platforms = platforms.unix;
27 };
28}