binary-cache/pkgs/tvix/default.nix
2024-07-21 12:43:36 +02:00

34 lines
580 B
Nix

{
tvix-src,
rustPlatform,
protobuf,
packages ? [ ],
pname ? "tvix",
}:
rustPlatform.buildRustPackage rec {
inherit pname;
version = "0.1.0";
src = tvix-src;
patches = [ ];
postPatch = "cd tvix";
doCheck = false;
cargoBuildFlags = builtins.concatStringsSep " " (builtins.map (v: "-p ${v}") packages);
nativeBuildInputs = [ protobuf ];
PROTO_ROOT = "/build/${src.name}";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"wu-manber-0.1.0" = "sha256-7YIttaQLfFC/32utojh2DyOHVsZiw8ul/z0lvOhAE/4=";
};
};
meta = { };
}