summaryrefslogtreecommitdiff
path: root/shell.nix
blob: 0c22e940c1a9cc82b09a79cd95ca40822f48b819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs ? import <nixpkgs> {}
, ...
}:

pkgs.mkShell {
	buildInputs = [
		pkgs.scons
		pkgs.clang
		pkgs.clang-tools
	];

	shellHook = ''
		if [ ! -f compile_commands.json ]; then
			printf "Generating compile_commands.json...\n"
			scons cdb
		fi
	'';
}