surrealpatch/pkg/nix/spec/x86_64-unknown-linux-musl.nix
2023-03-29 19:16:18 +01:00

21 lines
493 B
Nix

{ pkgs, target, util }:
{
inherit target;
features = with util.features; [ storage-mem ];
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";
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
};
}