Skip to content

Commit

Permalink
Merge pull request #173 from Chris00/master
Browse files Browse the repository at this point in the history
Conform OPAM version ≥ 2.1
  • Loading branch information
akabe authored Aug 7, 2021
2 parents 583795f + d993351 commit 683ceb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ $ cat "$(opam var share)/jupyter/kernel.json"
"argv": [
"/bin/sh",
"-c",
"eval $(opam config env --switch=4.08.1) && /home/xxxx/.opam/4.08.1/bin/ocaml-jupyter-kernel \"$@\"",
"eval $(opam env --switch=4.08.1) && /home/xxxx/.opam/4.08.1/bin/ocaml-jupyter-kernel \"$@\"",
"-init", "/home/xxxx/.ocamlinit",
"--merlin", "/home/xxxx/.opam/4.08.1/bin/ocamlmerlin",
"--verbosity", "app",
Expand Down
8 changes: 4 additions & 4 deletions config/ocaml-jupyter-opam-genspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh -eu

OPAM_BINDIR="$(opam config var bin)"
OPAM_SWITCH="$(opam config var switch)"
OPAM_SHAREDIR="$(opam config var share)/jupyter"
OPAM_BINDIR="$(opam var bin)"
OPAM_SWITCH="$(opam var switch)"
OPAM_SHAREDIR="$(opam var share)/jupyter"

mkdir -p "$OPAM_SHAREDIR/"

Expand All @@ -13,7 +13,7 @@ cat <<EOF >"$OPAM_SHAREDIR/kernel.json"
"argv": [
"/bin/sh",
"-c",
"eval \$(opam config env --switch=$OPAM_SWITCH --shell=sh) && $OPAM_BINDIR/ocaml-jupyter-kernel \"\$@\"",
"eval \$(opam env --switch=$OPAM_SWITCH --shell=sh) && $OPAM_BINDIR/ocaml-jupyter-kernel \"\$@\"",
"ocaml-jupyter-kernel",
"-init", "$HOME/.ocamlinit",
"--merlin", "$OPAM_BINDIR/ocamlmerlin",
Expand Down

0 comments on commit 683ceb4

Please sign in to comment.