33 lines
619 B
Nix
33 lines
619 B
Nix
{
|
|
tvix-src,
|
|
rustPlatform,
|
|
protobuf,
|
|
packages ? [ ],
|
|
pname ? "tvix",
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
inherit pname;
|
|
version = "0.1.0";
|
|
|
|
src = tvix-src;
|
|
|
|
patches = [ ./01-remote-path-info-nar-bridge.patch ];
|
|
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 = { };
|
|
}
|