From f5fdf1d5aa7c4b61bede887477de4b641a99bea1 Mon Sep 17 00:00:00 2001 From: icecodder Date: Sun, 15 Jan 2023 13:58:49 +0100 Subject: setup nix shell --- shell.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 shell.nix 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 + ]; +} -- cgit v1.2.3