-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
shell.nix
34 lines (33 loc) · 860 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
34
#
# Initiate the environment by running:
#
# nix-shell --pure shell.nix
#
# Then run the Linux build instructions. If you omit `--pure` above,
# problems may arise, such as a different compiler (e.g. clang)
# being used from the ambient environment.
#
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "felix-lang";
buildInputs = [
gcc
git
gmp
ocaml-ng.ocamlPackages_4_06.ocaml
python36Full
SDL2
];
src = null;
shellHook = ''
export LD_LIBRARY_PATH=${gmp}/lib
export PATH=$PATH:$(pwd)/build/release/host/bin/
export FLX_INSTALL_DIR=$PWD/build/release
#
# So far my attempts at getting the build script to recognize
# sdl-config are not working (I also tried an alias).
# The package db needs to be modified; see discussion on
# https://github.com/felix-lang/felix/pull/126
#
'';
}