Merge pull request #306880 from viraptor/libqb-darwin

libqb: fix darwin build
This commit is contained in:
Aleksana 2024-04-27 15:47:58 +08:00 committed by GitHub
commit 7805badd55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libxml2 }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, libxml2 }:
stdenv.mkDerivation rec {
pname = "libqb";
@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-ZjxC7W4U8T68mZy/OvWj/e4W9pJIj2lVDoEjxXYr/G8=";
};
patches = [
# add a declaration of fdatasync, missing on darwin https://github.com/ClusterLabs/libqb/pull/496
(fetchpatch {
url = "https://github.com/ClusterLabs/libqb/commit/255ccb70ee19cc0c82dd13e4fd5838ca5427795f.patch";
hash = "sha256-6x4B3FM0XSRIeAly8JtMOGOdyunTcbaDzUeBZInXR4U=";
})
];
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libxml2 ];