mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
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
|
# Dirty, but apparently ocp-build requires a TERM
|
||||||
makeFlags = ["TERM=screen"];
|
makeFlags = ["TERM=screen"];
|
||||||
|
|
||||||
|
# change argv0 to "opam" as a workaround for
|
||||||
|
# https://github.com/ocaml/opam/issues/2142
|
||||||
postInstall = ''
|
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
|
--suffix PATH : ${aspcud}/bin:${unzip}/bin:${curl}/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue