diff options
| -rw-r--r-- | shell.nix | 20 | 
1 files changed, 20 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..c1bbd06 --- /dev/null +++ b/shell.nix @@ -0,0 +1,20 @@ +# This defines a function taking `pkgs` as parameter, and uses +# `nixpkgs` by default if no argument is passed to it. +{ pkgs ? import <nixpkgs> {} }: + +# Thisa void typings `pkgs.` before each package name. +with pkgs; + +# Defines a shell. +mkShell { +	# Sets the build inputs, i.e. what will be available in our +	# local environment. +	buildInputs = [ +		cargo +		gcc +		go +		gnumake +		protobuf +		rustc +	]; +}  | 
