1 { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, libxml2 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-ZjxC7W4U8T68mZy/OvWj/e4W9pJIj2lVDoEjxXYr/G8=";
15 # add a declaration of fdatasync, missing on darwin https://github.com/ClusterLabs/libqb/pull/496
17 url = "https://github.com/ClusterLabs/libqb/commit/255ccb70ee19cc0c82dd13e4fd5838ca5427795f.patch";
18 hash = "sha256-6x4B3FM0XSRIeAly8JtMOGOdyunTcbaDzUeBZInXR4U=";
22 nativeBuildInputs = [ autoreconfHook pkg-config ];
24 buildInputs = [ libxml2 ];
27 sed -i '/# --enable-new-dtags:/,/--enable-new-dtags is required/ d' configure.ac
31 homepage = "https://github.com/clusterlabs/libqb";
32 description = "Library providing high performance logging, tracing, ipc, and poll";
33 license = licenses.lgpl21Plus;
34 platforms = platforms.unix;