diff options
Diffstat (limited to 'shell.nix')
| -rw-r--r-- | shell.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..511a808 --- /dev/null +++ b/shell.nix @@ -0,0 +1,14 @@ +{ pkgs ? import <nixpkgs> {} }: + +pkgs.mkShell { + buildInputs = with pkgs; [ + ncurses + zlib + ctags + ]; + + shellHook = '' + export NIX_CFLAGS_COMPILE="-I${pkgs.ncurses.dev}/include -I${pkgs.zlib.dev}/include" + export NIX_LDFLAGS="-L${pkgs.ncurses.out}/lib -L${pkgs.zlib.out}/lib" + ''; +} |