Skip to content

Commit 1fa7c84

Browse files
committed
infra: add shell.nix
The patch introduces a shell.nix that helps creating a developer environment for running tests: $ nix-shell
1 parent 2fbf7bb commit 1fa7c84

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

shell.nix

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Nix development shell for lunapark
2+
#
3+
# Usage:
4+
# nix-shell # Enter development environment.
5+
# nix-shell --pure # Enter pure (isolated) environment.
6+
#
7+
{ pkgs ? import <nixpkgs> {} }:
8+
9+
pkgs.mkShell {
10+
name = "lunapark-dev";
11+
12+
buildInputs = with pkgs; [
13+
cbmc
14+
cbmc-viewer
15+
clang
16+
cmake
17+
git
18+
gnumake
19+
libunwind
20+
ninja
21+
protobuf_21
22+
readline
23+
xz
24+
zlib
25+
];
26+
27+
shellHook = ''
28+
echo "lunapark Development Environment"
29+
echo " cmake --workflow --preset luajit"
30+
echo " cmake --workflow --preset lua"
31+
'';
32+
}

0 commit comments

Comments
 (0)