Nova/shell.nix
2023-01-16 02:03:18 +04:00

22 lines
417 B
Nix

# This defines a function taking `pkgs` as parameter, and uses
# `nixpkgs` by default if no argument is passed to it.
{ pkgs ? import <nixpkgs> {} }:
# This avoid 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
clang
go
gnumake
protobuf
rustc
zlib
];
}