ocamlPackages.zed: 1.4 -> 1.5
This commit is contained in:
@@ -1,19 +1,34 @@
|
|||||||
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, camomile, react }:
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, camomile, react, jbuilder }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let param =
|
||||||
version = "1.4";
|
if stdenv.lib.versionAtLeast ocaml.version "4.02" then
|
||||||
|
{
|
||||||
|
version = "1.5";
|
||||||
|
sha256 = "1nq884cxl1k4daa549bk7bxarwivbpp51k4blbiwyxwfhs29xgfr";
|
||||||
|
buildInputs = [ jbuilder ];
|
||||||
|
extra = {
|
||||||
|
buildPhase = "jbuilder build -p zed";
|
||||||
|
inherit (jbuilder) installPhase; };
|
||||||
|
} else {
|
||||||
|
version = "1.4";
|
||||||
|
sha256 = "0d8qfy0qiydrrqi8qc9rcwgjigql6vx9gl4zp62jfz1lmjgb2a3w";
|
||||||
|
buildInputs = [];
|
||||||
|
extra = { createFindlibDestdir = true; };
|
||||||
|
}
|
||||||
|
; in
|
||||||
|
|
||||||
|
stdenv.mkDerivation (rec {
|
||||||
|
inherit (param) version;
|
||||||
name = "ocaml-zed-${version}";
|
name = "ocaml-zed-${version}";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://github.com/diml/zed/archive/${version}.tar.gz";
|
url = "https://github.com/diml/zed/archive/${version}.tar.gz";
|
||||||
sha256 = "0d8qfy0qiydrrqi8qc9rcwgjigql6vx9gl4zp62jfz1lmjgb2a3w";
|
inherit (param) sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild react ];
|
buildInputs = [ ocaml findlib ocamlbuild ] ++ param.buildInputs;
|
||||||
|
|
||||||
propagatedBuildInputs = [ camomile ];
|
propagatedBuildInputs = [ react camomile ];
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Abstract engine for text edition in OCaml";
|
description = "Abstract engine for text edition in OCaml";
|
||||||
@@ -31,4 +46,4 @@ stdenv.mkDerivation rec {
|
|||||||
stdenv.lib.maintainers.gal_bolle
|
stdenv.lib.maintainers.gal_bolle
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
} // param.extra)
|
||||||
|
|||||||
Reference in New Issue
Block a user