From 04a543b3a08f68a99ff1908ab7bc047729288465 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sat, 17 Nov 2018 19:27:45 -0600 Subject: [PATCH] defaultCrateOverrides: foundationdb native dependencies Signed-off-by: Austin Seipp --- .../rust/default-crate-overrides.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/rust/default-crate-overrides.nix b/pkgs/build-support/rust/default-crate-overrides.nix index da3f0a59eb60..46b70ce6bace 100644 --- a/pkgs/build-support/rust/default-crate-overrides.nix +++ b/pkgs/build-support/rust/default-crate-overrides.nix @@ -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 ]; };