git.iko.soy/typeable/nixpkgs
on master help sign in
opam: use aspcud on darwin

aspcud is the recommended solver for OPAM and the `aspcud` package is now building properly on Darwin. As such, we can remove the special case for Darwin that required OPAM to fall back to the built-in solver.

commit331f5a75ce93e237d5aeb37db7612d9b609098a8 authorWinnie Quinn <me@winniequinn.com> dateTue 12 Sep 2017, 16:22 (9 years ago) parent7d98316
1 file changed+5−8
pkgs/development/tools/ocaml/opam/default.nix+5−8
pkgs/development/tools/ocaml/opam/default.nix+5−8
@@ -1,6 +1,5 @@
11{ stdenv, lib, fetchgit, fetchurl, makeWrapper,
2− ocaml, unzip, ncurses, curl,
3− aspcudSupport ? !stdenv.isDarwin, aspcud
2+ ocaml, unzip, ncurses, curl, aspcud
43}:
54
65assert lib.versionAtLeast ocaml.version "3.12.1";
@@ -72,12 +71,10 @@ in stdenv.mkDerivation rec {
7271 # Dirty, but apparently ocp-build requires a TERM
7372 makeFlags = ["TERM=screen"];
7473
75− postInstall =
76− if aspcudSupport then ''
77− wrapProgram $out/bin/opam \
78− --suffix PATH : ${aspcud}/bin
79− ''
80− else "";
74+ postInstall = ''
75+ wrapProgram $out/bin/opam \
76+ --suffix PATH : ${aspcud}/bin
77+ '';
8178
8279 doCheck = false;
8380