blob: 927c1b12a34db90449c77bc2142281e57ffb8694 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  | 
# 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
	];
}
  |