Skip to content

Commit

Permalink
Merge pull request #29719 from winniequinn/opam-aspcud-darwin
Browse files Browse the repository at this point in the history
opam: use aspcud on darwin
  • Loading branch information
Mic92 committed Sep 24, 2017
2 parents 4151dde + 331f5a7 commit baa55a4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pkgs/development/tools/ocaml/opam/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ stdenv, lib, fetchgit, fetchurl, makeWrapper,
ocaml, unzip, ncurses, curl,
aspcudSupport ? !stdenv.isDarwin, aspcud
ocaml, unzip, ncurses, curl, aspcud
}:

assert lib.versionAtLeast ocaml.version "3.12.1";
Expand Down Expand Up @@ -72,12 +71,10 @@ in stdenv.mkDerivation rec {
# Dirty, but apparently ocp-build requires a TERM
makeFlags = ["TERM=screen"];

postInstall =
if aspcudSupport then ''
wrapProgram $out/bin/opam \
--suffix PATH : ${aspcud}/bin
''
else "";
postInstall = ''
wrapProgram $out/bin/opam \
--suffix PATH : ${aspcud}/bin
'';

doCheck = false;

Expand Down

0 comments on commit baa55a4

Please sign in to comment.