2022-10-04 16:32:44 +00:00
|
|
|
{ pkgs, target, util }:
|
|
|
|
|
|
|
|
{
|
|
|
|
inherit target;
|
|
|
|
|
2022-12-30 08:23:19 +00:00
|
|
|
features = with util.features; [ storage-mem ];
|
|
|
|
|
2022-10-04 16:32:44 +00:00
|
|
|
buildSpec = with pkgs; {
|
|
|
|
nativeBuildInputs = with pkgsStatic; [ stdenv.cc openssl ];
|
|
|
|
|
|
|
|
CARGO_BUILD_TARGET = target;
|
|
|
|
|
|
|
|
OPENSSL_NO_VENDOR = "true";
|
|
|
|
OPENSSL_STATIC = "true";
|
|
|
|
OPENSSL_LIB_DIR = "${pkgsStatic.openssl.out}/lib";
|
|
|
|
OPENSSL_INCLUDE_DIR = "${pkgsStatic.openssl.dev}/include";
|
2023-03-29 18:16:18 +00:00
|
|
|
|
|
|
|
PROTOC = "${protobuf}/bin/protoc";
|
|
|
|
PROTOC_INCLUDE = "${protobuf}/include";
|
2022-10-04 16:32:44 +00:00
|
|
|
};
|
|
|
|
}
|