From: icecodder Date: Sun, 15 Jan 2023 12:58:49 +0000 (+0100) Subject: setup nix shell X-Git-Tag: v0.1.1~23^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f5fdf1d5aa7c4b61bede887477de4b641a99bea1;p=matthieu%2Fnova.git setup nix shell --- 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 {} }: + +# 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 + ]; +}