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