diff options
| author | icecodder <git@icecodder.me> | 2023-01-15 13:58:49 +0100 |
|---|---|---|
| committer | icecodder <git@icecodder.me> | 2023-01-15 13:58:49 +0100 |
| commit | f5fdf1d5aa7c4b61bede887477de4b641a99bea1 (patch) | |
| tree | 789a927a256672ac74df42759960410cf4897e08 | |
| parent | c06cf52e887cc560f1fd4fa72713b239fe0102a6 (diff) | |
setup nix shell
| -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 + ]; +} |
