Add nix build script
This commit is contained in:
		
							parent
							
								
									1819a95b3b
								
							
						
					
					
						commit
						4638955d5c
					
				
					 1 changed files with 23 additions and 0 deletions
				
			
		
							
								
								
									
										23
									
								
								default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,23 @@
 | 
				
			||||||
 | 
					{ pkgs ? import <nixpkgs> {} }:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					with pkgs;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					let
 | 
				
			||||||
 | 
					  moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
 | 
				
			||||||
 | 
					  nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					in
 | 
				
			||||||
 | 
					rustPlatform.buildRustPackage {
 | 
				
			||||||
 | 
					  pname = "tlaternet";
 | 
				
			||||||
 | 
					  version = "1.0";
 | 
				
			||||||
 | 
					  src = ./.;
 | 
				
			||||||
 | 
					  cargoSha256 = "1gyvc4gc2b799q9hi0af4z14fbg0sgnkqsmajniqyb693ifg9f6d";
 | 
				
			||||||
 | 
					  verifyCargoDeps = true;
 | 
				
			||||||
 | 
					  nativeBuildInputs = [
 | 
				
			||||||
 | 
					    nixpkgs.latest.rustChannels.nightly.rust
 | 
				
			||||||
 | 
					    pkg-config
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					  buildInputs = [
 | 
				
			||||||
 | 
					    openssl
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue