blob: 316f156af0cc516e53a4c4fab0d7b55bc1233e7e (
plain)
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
|
with import <nixpkgs> {};
let
libs = [
autoconf
bubblewrap
binutils
curl
gcc
libtool
m4
ocaml
pkgconfig
];
in
stdenv.mkDerivation rec {
name = "ocaml-env";
buildInputs = libs;
# configure opam with sandboxing
shellHook = ''
. /home/phg/.opam/opam-init/init.sh &>/dev/null || true
export OPAM_USER_PATH_RO=/nix/store
'';
}
|