feat(tvix/store): init
Change-Id: Id846647fa456ff8b187ed4f16d035ce030f11d25 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7264 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
		
							parent
							
								
									12413a669f
								
							
						
					
					
						commit
						c432aae9b3
					
				
					 4 changed files with 35 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								tvix/store/Cargo.lock
									
										
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tvix/store/Cargo.lock
									
										
									
										generated
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
# This file is automatically @generated by Cargo.
 | 
			
		||||
# It is not intended for manual editing.
 | 
			
		||||
version = 3
 | 
			
		||||
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "tvix-store"
 | 
			
		||||
version = "0.1.0"
 | 
			
		||||
							
								
								
									
										6
									
								
								tvix/store/Cargo.toml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								tvix/store/Cargo.toml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
[package]
 | 
			
		||||
name = "tvix-store"
 | 
			
		||||
version = "0.1.0"
 | 
			
		||||
edition = "2021"
 | 
			
		||||
 | 
			
		||||
[dependencies]
 | 
			
		||||
							
								
								
									
										19
									
								
								tvix/store/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								tvix/store/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
{ depot, pkgs, lib, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  protoRoot = depot.nix.sparseTree depot.path.origSrc [
 | 
			
		||||
    ./protos/castore.proto
 | 
			
		||||
    ./protos/pathinfo.proto
 | 
			
		||||
  ];
 | 
			
		||||
in
 | 
			
		||||
depot.third_party.naersk.buildPackage {
 | 
			
		||||
  src = depot.third_party.gitignoreSource ./.;
 | 
			
		||||
  # see https://github.com/nix-community/naersk/issues/169
 | 
			
		||||
  root = depot.nix.sparseTree ./. [ ./Cargo.lock ./Cargo.toml ];
 | 
			
		||||
 | 
			
		||||
  nativeBuildInputs = [ pkgs.protobuf ];
 | 
			
		||||
 | 
			
		||||
  PROTO_ROOT = protoRoot;
 | 
			
		||||
 | 
			
		||||
  doCheck = true;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										3
									
								
								tvix/store/src/main.rs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								tvix/store/src/main.rs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
fn main() {
 | 
			
		||||
    println!("Hello, world!");
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue