2017-12-14 07:36:29 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
2017-03-16 07:11:33 +00:00
|
|
|
, astring, fmt, fpath, logs, rresult
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-bos-${version}";
|
2018-11-09 15:14:44 +00:00
|
|
|
version = "0.2.0";
|
2017-03-16 07:11:33 +00:00
|
|
|
src = fetchurl {
|
2019-04-22 09:14:28 +01:00
|
|
|
url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz";
|
2018-11-09 15:14:44 +00:00
|
|
|
sha256 = "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc";
|
2017-03-16 07:11:33 +00:00
|
|
|
};
|
|
|
|
|
2019-10-31 10:16:15 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
buildInputs = [ findlib topkg ];
|
2017-03-16 07:11:33 +00:00
|
|
|
propagatedBuildInputs = [ astring fmt fpath logs rresult ];
|
|
|
|
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Basic OS interaction for OCaml";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://erratique.ch/software/bos";
|
2017-03-16 07:11:33 +00:00
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|