nixpkgs/pkgs/development/libraries/libqb/default.nix
Sebastián Mancilla 0241bd3d64 libqb: fix build on darwin
Remove configure check for linker flag `--enable-new-dtags`, which fails
on darwin. The flag is never used by the Makefile anyway.
2021-11-21 13:35:50 -03:00

28 lines
742 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libxml2 }:
stdenv.mkDerivation rec {
pname = "libqb";
version = "2.0.3";
src = fetchFromGitHub {
owner = "ClusterLabs";
repo = pname;
rev = "v${version}";
sha256 = "sha256-a9CnqfrQUL0DdPPOJjfh9tQ0O8iRHPP3iBmy3MKvt/0=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libxml2 ];
postPatch = ''
sed -i '/# --enable-new-dtags:/,/--enable-new-dtags is required/ d' configure.ac
'';
meta = with lib; {
homepage = "https://github.com/clusterlabs/libqb";
description = "A library providing high performance logging, tracing, ipc, and poll";
license = licenses.lgpl21Plus;
platforms = platforms.unix;
};
}