binary-cache/pkgs/tvix/default.nix

34 lines
580 B
Nix
Raw Normal View History

2024-06-29 15:53:57 +00:00
{
tvix-src,
rustPlatform,
protobuf,
packages ? [ ],
pname ? "tvix",
}:
rustPlatform.buildRustPackage rec {
inherit pname;
version = "0.1.0";
src = tvix-src;
2024-07-21 10:43:36 +00:00
patches = [ ];
postPatch = "cd tvix";
2024-07-19 08:49:02 +00:00
2024-06-29 15:53:57 +00:00
doCheck = false;
cargoBuildFlags = builtins.concatStringsSep " " (builtins.map (v: "-p ${v}") packages);
nativeBuildInputs = [ protobuf ];
2024-07-19 08:49:02 +00:00
PROTO_ROOT = "/build/${src.name}";
2024-06-29 15:53:57 +00:00
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"wu-manber-0.1.0" = "sha256-7YIttaQLfFC/32utojh2DyOHVsZiw8ul/z0lvOhAE/4=";
};
};
meta = { };
}