]> git.puffer.fish Git - matthieu/nova.git/commitdiff
setup nix shell
authoricecodder <git@icecodder.me>
Sun, 15 Jan 2023 12:58:49 +0000 (13:58 +0100)
committericecodder <git@icecodder.me>
Sun, 15 Jan 2023 12:58:49 +0000 (13:58 +0100)
shell.nix [new file with mode: 0644]

diff --git a/shell.nix b/shell.nix
new file mode 100644 (file)
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
+       ];
+}