mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
defaultCrateOverrides: override crates necessary for building sequoia
See https://git.sr.ht/~erictapen/sequoia for a flake using these overrides.
This commit is contained in:
parent
9df8a98fac
commit
9038cc62fd
1 changed files with 42 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv, pkg-config, 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,6 +11,10 @@ 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 ];
|
||||||
|
@ -84,6 +89,12 @@ in
|
||||||
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 ];
|
||||||
};
|
};
|
||||||
|
@ -107,6 +118,36 @@ 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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue