defaultCrateOverrides: foundationdb native dependencies

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2018-11-17 19:27:45 -06:00
parent d97702e03f
commit 04a543b3a0

View file

@ -1,6 +1,6 @@
{ stdenv, pkgconfig, curl, darwin, libiconv, libgit2, libssh2,
openssl, sqlite, zlib, dbus, dbus-glib, gdk_pixbuf, cairo, python3,
libsodium, postgresql, gmp, ... }:
libsodium, postgresql, gmp, foundationdb, ... }:
let
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
@ -34,6 +34,20 @@ in
buildInputs = [ pkgconfig dbus ];
};
foundationdb-sys = attrs: {
buildInputs = [ foundationdb ];
# needed for 0.4+ release, when the FFI bindings are auto-generated
#
# patchPhase = ''
# substituteInPlace ./foundationdb-sys/build.rs \
# --replace /usr/local/include ${foundationdb.dev}/include
# '';
};
foundationdb = attrs: {
buildInputs = [ foundationdb ];
};
gobject-sys = attrs: {
buildInputs = [ dbus-glib ];
};