setup nix shell
This commit is contained in:
parent
c06cf52e88
commit
f5fdf1d5aa
20
shell.nix
Normal file
20
shell.nix
Normal file
|
@ -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
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue