Merge pull request #108782 from erictapen/sequoia-crate-overrides
This commit is contained in:
commit
04065a7354
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, pkgconfig, curl, darwin, libiconv, libgit2, libssh2,
|
{ stdenv, pkg-config, curl, darwin, libiconv, libgit2, libssh2,
|
||||||
openssl, sqlite, zlib, dbus, dbus-glib, gdk-pixbuf, cairo, python3,
|
openssl, sqlite, zlib, dbus, dbus-glib, gdk-pixbuf, cairo, python3,
|
||||||
libsodium, postgresql, gmp, foundationdb, ... }:
|
libsodium, postgresql, gmp, foundationdb, capnproto, nettle, clang,
|
||||||
|
llvmPackages, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||||
@ -10,26 +11,30 @@ in
|
|||||||
buildInputs = [ cairo ];
|
buildInputs = [ cairo ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
capnp-rpc = attrs: {
|
||||||
|
nativeBuildInputs = [ capnproto ];
|
||||||
|
};
|
||||||
|
|
||||||
cargo = attrs: {
|
cargo = attrs: {
|
||||||
buildInputs = [ openssl zlib curl ]
|
buildInputs = [ openssl zlib curl ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation Security libiconv ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation Security libiconv ];
|
||||||
};
|
};
|
||||||
|
|
||||||
libz-sys = attrs: {
|
libz-sys = attrs: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ zlib ];
|
buildInputs = [ zlib ];
|
||||||
extraLinkFlags = ["-L${zlib.out}/lib"];
|
extraLinkFlags = ["-L${zlib.out}/lib"];
|
||||||
};
|
};
|
||||||
|
|
||||||
curl-sys = attrs: {
|
curl-sys = attrs: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ zlib curl ];
|
buildInputs = [ zlib curl ];
|
||||||
propagatedBuildInputs = [ curl zlib ];
|
propagatedBuildInputs = [ curl zlib ];
|
||||||
extraLinkFlags = ["-L${zlib.out}/lib"];
|
extraLinkFlags = ["-L${zlib.out}/lib"];
|
||||||
};
|
};
|
||||||
|
|
||||||
dbus = attrs: {
|
dbus = attrs: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ dbus ];
|
buildInputs = [ dbus ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -65,36 +70,42 @@ in
|
|||||||
|
|
||||||
libgit2-sys = attrs: {
|
libgit2-sys = attrs: {
|
||||||
LIBGIT2_SYS_USE_PKG_CONFIG = true;
|
LIBGIT2_SYS_USE_PKG_CONFIG = true;
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ openssl zlib libgit2 ];
|
buildInputs = [ openssl zlib libgit2 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
libsqlite3-sys = attrs: {
|
libsqlite3-sys = attrs: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ sqlite ];
|
buildInputs = [ sqlite ];
|
||||||
};
|
};
|
||||||
|
|
||||||
libssh2-sys = attrs: {
|
libssh2-sys = attrs: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ openssl zlib libssh2 ];
|
buildInputs = [ openssl zlib libssh2 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
libdbus-sys = attrs: {
|
libdbus-sys = attrs: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ dbus ];
|
buildInputs = [ dbus ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nettle-sys = attrs: {
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
buildInputs = [ nettle clang ];
|
||||||
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
||||||
|
};
|
||||||
|
|
||||||
openssl = attrs: {
|
openssl = attrs: {
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
};
|
};
|
||||||
|
|
||||||
openssl-sys = attrs: {
|
openssl-sys = attrs: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
};
|
};
|
||||||
|
|
||||||
pq-sys = attr: {
|
pq-sys = attr: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ postgresql ];
|
buildInputs = [ postgresql ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -107,12 +118,42 @@ in
|
|||||||
propagatedBuildInputs = [ Security ];
|
propagatedBuildInputs = [ Security ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sequoia-openpgp = attrs: {
|
||||||
|
buildInputs = [ gmp ];
|
||||||
|
};
|
||||||
|
|
||||||
|
sequoia-openpgp-ffi = attrs: {
|
||||||
|
buildInputs = [ gmp ];
|
||||||
|
};
|
||||||
|
|
||||||
|
sequoia-ipc = attrs: {
|
||||||
|
buildInputs = [ gmp ];
|
||||||
|
};
|
||||||
|
|
||||||
|
sequoia-guide = attrs: {
|
||||||
|
buildInputs = [ gmp ];
|
||||||
|
};
|
||||||
|
|
||||||
|
sequoia-store = attrs: {
|
||||||
|
nativeBuildInputs = [ capnproto ];
|
||||||
|
buildInputs = [ sqlite gmp ];
|
||||||
|
};
|
||||||
|
|
||||||
|
sequoia-sq = attrs: {
|
||||||
|
buildInputs = [ sqlite gmp ];
|
||||||
|
};
|
||||||
|
|
||||||
|
sequoia-tool = attrs: {
|
||||||
|
nativeBuildInputs = [ capnproto ];
|
||||||
|
buildInputs = [ sqlite gmp ];
|
||||||
|
};
|
||||||
|
|
||||||
serde_derive = attrs: {
|
serde_derive = attrs: {
|
||||||
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
thrussh-libsodium = attrs: {
|
thrussh-libsodium = attrs: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ libsodium ];
|
buildInputs = [ libsodium ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user