infrastructure/machines/storage01/tvix-cache/package/default.nix
sinavir 5c8db3544c
All checks were successful
build configuration / build_vault01 (push) Successful in 1m16s
build configuration / build_compute01 (push) Successful in 1m18s
build configuration / build_storage01 (push) Successful in 1m19s
build configuration / build_web02 (push) Successful in 1m27s
build configuration / build_web01 (push) Successful in 1m48s
lint / check (push) Successful in 24s
build configuration / build_geo02 (push) Successful in 1m5s
build configuration / build_bridge01 (push) Successful in 1m11s
build configuration / build_rescue01 (push) Successful in 1m17s
build configuration / build_geo01 (push) Successful in 1m7s
build configuration / push_to_cache_storage01 (push) Successful in 1m26s
build configuration / push_to_cache_compute01 (push) Successful in 1m44s
build configuration / push_to_cache_geo02 (push) Successful in 1m18s
build configuration / push_to_cache_web02 (push) Successful in 1m29s
build configuration / push_to_cache_geo01 (push) Successful in 1m23s
build configuration / push_to_cache_bridge01 (push) Successful in 1m13s
build configuration / push_to_cache_web01 (push) Successful in 2m11s
build configuration / push_to_cache_rescue01 (push) Successful in 1m18s
chore(ci): Make the CI happy
2024-09-26 13:45:06 +02:00

46 lines
1.1 KiB
Nix

{
fetchgit,
rustPlatform,
protobuf,
runCommand,
}:
let
tvix-hash = "sha256-It3brj6SX+9OIGyKsITnNLjzDnB7CBCZDS+S7arRiWY=";
tvix-src = fetchgit {
name = "tvix";
url = "https://git.dgnum.eu/mdebray/tvl-depot";
rev = "3389c550b92d8b631f75e5a77e244fe698e4b4b2";
hash = tvix-hash;
};
protos = runCommand "tvix-protos" { } ''
mkdir $out
cd ${tvix-src}/tvix #remove tvix maybe
find . -name '*.proto' -exec install -D {} $out/{} \;
'';
in
rustPlatform.buildRustPackage rec {
pname = "multitenant-binary-cache";
version = "0.1.0";
src = fetchgit {
url = "https://git.lix.systems/sinavir/multitenant-tvix-binary-cache.git";
rev = "0d4c5ca8f75e156f9485fc085e93e85260e2e843";
hash = "sha256-OmXud+MhF2M02ofqDOnmazf190vu91i6RZ2y0NdA8oU=";
};
PROTO_ROOT = protos;
nativeBuildInputs = [ protobuf ];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"bigtable_rs-0.2.10" = "sha256-2NC3rHbS2rdD0Rnovymn1xaR22KaR6yzWr298wOPxlY=";
"nar-bridge-0.1.0" = tvix-hash;
};
};
cargoHash = "";
meta = { };
}