ocamlPackages.utop: use buildDunePackage
This commit is contained in:
parent
d07842589d
commit
86d06ee968
@ -1,12 +1,12 @@
|
|||||||
{ stdenv, fetchurl, ocaml, findlib, dune
|
{ stdenv, fetchurl, ocaml, findlib, dune
|
||||||
, lambdaTerm, cppo, makeWrapper
|
, lambdaTerm, cppo, makeWrapper, buildDunePackage
|
||||||
}:
|
}:
|
||||||
|
|
||||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||||
then throw "utop is not available for OCaml ${ocaml.version}"
|
then throw "utop is not available for OCaml ${ocaml.version}"
|
||||||
else
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildDunePackage rec {
|
||||||
pname = "utop";
|
pname = "utop";
|
||||||
version = "2.4.2";
|
version = "2.4.2";
|
||||||
|
|
||||||
@ -16,12 +16,10 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ ocaml findlib cppo dune ];
|
buildInputs = [ cppo ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ lambdaTerm ];
|
propagatedBuildInputs = [ lambdaTerm ];
|
||||||
|
|
||||||
inherit (dune) installPhase;
|
|
||||||
|
|
||||||
postFixup =
|
postFixup =
|
||||||
let
|
let
|
||||||
path = "etc/utop/env";
|
path = "etc/utop/env";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user