-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
shell.nix
33 lines (30 loc) · 722 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ nixpkgs ? (import <nixpkgs> {}).fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "2eaadfa5be7ce653a2bca31671c406a2ee7f7b0f";
sha256 = "1sh3338rp2nnyjqpfd2jj9qdl03cd5qy3qqpkgmlf16njzd6bs4y";
}}:
with import nixpkgs {};
let
compiler_pkg = pkgs.${compiler};
native_compiler = compiler_pkg.isClang == stdenv.cc.isClang;
deps = import ./nix/deps.nix { inherit nixpkgs; };
in
stdenv.mkDerivation rec {
name = "ewig-env";
buildInputs = [
gcc7
cmake
ncurses
boost
deps.immer
deps.scelta
deps.utfcpp
deps.lager
deps.zug
];
shellHook = ''
export EWIG_ROOT=`dirname ${toString ./shell.nix}`
export PATH=$PATH:"$EWIG_ROOT/build"
'';
}