init
This commit is contained in:
		
						commit
						09233e1e99
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
/target
 | 
			
		||||
							
								
								
									
										9
									
								
								Cargo.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								Cargo.toml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
[package]
 | 
			
		||||
name = "Mercury"
 | 
			
		||||
version = "0.1.0"
 | 
			
		||||
authors = ["Daniel Olsen <daniel.olsen99@gmail.com>"]
 | 
			
		||||
edition = "2018"
 | 
			
		||||
 | 
			
		||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 | 
			
		||||
 | 
			
		||||
[dependencies]
 | 
			
		||||
							
								
								
									
										27
									
								
								shell.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								shell.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,27 @@
 | 
			
		||||
let
 | 
			
		||||
  moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
 | 
			
		||||
  nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
 | 
			
		||||
  rustNightlyChannel = (nixpkgs.rustChannelOf { date = "2020-03-19"; channel = "nightly"; }).rust.override {
 | 
			
		||||
    extensions = [
 | 
			
		||||
			"rust-src"
 | 
			
		||||
			"rls-preview"
 | 
			
		||||
			"clippy-preview"
 | 
			
		||||
			"rustfmt-preview"
 | 
			
		||||
		];
 | 
			
		||||
  };
 | 
			
		||||
	rustStableChannel = nixpkgs.latest.rustChannels.stable.rust.override {
 | 
			
		||||
		extensions = [
 | 
			
		||||
			"rust-src"
 | 
			
		||||
			"rls-preview"
 | 
			
		||||
			"clippy-preview"
 | 
			
		||||
			"rustfmt-preview"
 | 
			
		||||
		];
 | 
			
		||||
  };
 | 
			
		||||
in
 | 
			
		||||
with nixpkgs;
 | 
			
		||||
  stdenv.mkDerivation {
 | 
			
		||||
    name = "moz_overlay_shell";
 | 
			
		||||
    buildInputs = [
 | 
			
		||||
      rustStableChannel
 | 
			
		||||
    ];
 | 
			
		||||
  }
 | 
			
		||||
							
								
								
									
										3
									
								
								src/main.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/main.rs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
fn main() {
 | 
			
		||||
    println!("Hello, world!");
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user