-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathshell.nix
44 lines (44 loc) · 1018 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
35
36
37
38
39
40
41
42
43
44
{ nixpkgs ? import <nixpkgs> {}
, compiler ? "ghc802"
}:
let
coq-serapi = nixpkgs.ocamlPackages.callPackage ./coq-serapi/default.nix {};
in
#let callPackage = nixpkgs.pkgs.haskell.packages.${compiler}.callPackage; in
# We call default.nix because it has some overrides
#let peacoq-server = callPackage peacoq-server/default.nix {
# inherit compiler;
#}; in
nixpkgs.stdenv.mkDerivation {
name = "peacoq";
buildInputs = (with nixpkgs; [
#cabal-install
coq_8_9
coq-serapi
dune
#ghc
ocaml
nodejs-10_x
#peacoq-server
] ++ (with ocamlPackages;
[
# Coq:
camlp5 ocaml findlib
# CoqIDE:
lablgtk
# SerAPI:
camlp4 cmdliner
ocamlbuild opam
ppx_driver ppx_import ppx_sexp_conv
sexplib
])
);
nativeBuildInputs = (with nixpkgs; [
]);
shellHook = ''
export NIXSHELL="$NIXSHELL\[PeaCoq\]"
export SSL_CERT_FILE="/etc/ssl/certs/ca-bundle.crt"
echo -e "\nRemember to run setup.sh again\n"
# ./setup.sh
'';
}