-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathshell.nix
More file actions
28 lines (27 loc) · 789 Bytes
/
shell.nix
File metadata and controls
28 lines (27 loc) · 789 Bytes
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
let
pkgs = import ./pkgs.nix;
gerbilDeps = pkgs.gerbilDeps;
in pkgs.mkShell {
inputsFrom = with pkgs; [
sequentia
];
buildInputs = (with pkgs; [
python3
clang-tools
gerbil-unstable
]);
# Until gerbil-support includes static compilation objects,
# let's not use gerbilLoadPath and instead copy the sources into the writable GERBIL_PATH.
shellHook = ''
export PATH=$PWD/src:$PATH
export GERBIL_PATH=$PWD/.gerbil
mkdir -p $GERBIL_PATH
chmod -R u+w .gerbil
#export GERBIL_LOADPATH=${pkgs.gerbil-support.gerbilLoadPath (["$out"] ++ gerbilDeps)}
for i in ${pkgs.lib.concatStringsSep " " gerbilDeps} ; do
cp -af $i/gerbil/lib $GERBIL_PATH/
chmod -R u+w .gerbil
done
export GERBIL_BUILD_CORES=$NIX_BUILD_CORES
'';
}