ocamlPackages.utop: use buildDunePackage

This commit is contained in:
Mario Rodas 2019-12-18 04:23:00 -05:00
parent d07842589d
commit 86d06ee968
No known key found for this signature in database
GPG key ID: 4C4BEFD7B18DC5E8

View file

@ -1,12 +1,12 @@
{ stdenv, fetchurl, ocaml, findlib, dune
, lambdaTerm, cppo, makeWrapper
, lambdaTerm, cppo, makeWrapper, buildDunePackage
}:
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "utop is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
buildDunePackage rec {
pname = "utop";
version = "2.4.2";
@ -16,12 +16,10 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ ocaml findlib cppo dune ];
buildInputs = [ cppo ];
propagatedBuildInputs = [ lambdaTerm ];
inherit (dune) installPhase;
postFixup =
let
path = "etc/utop/env";