Merge pull request #41461 from xplat/fix-opam-master
fix opam tool support
This commit is contained in:
commit
ba210568a9
1 changed files with 5 additions and 1 deletions
|
@ -71,8 +71,12 @@ in stdenv.mkDerivation rec {
|
|||
# Dirty, but apparently ocp-build requires a TERM
|
||||
makeFlags = ["TERM=screen"];
|
||||
|
||||
# change argv0 to "opam" as a workaround for
|
||||
# https://github.com/ocaml/opam/issues/2142
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/opam \
|
||||
mv $out/bin/opam $out/bin/.opam-wrapped
|
||||
makeWrapper $out/bin/.opam-wrapped $out/bin/opam \
|
||||
--argv0 "opam" \
|
||||
--suffix PATH : ${aspcud}/bin:${unzip}/bin:${curl}/bin
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue