2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
2017-03-16 07:11:33 +00:00
|
|
|
, astring, fmt, fpath, logs, rresult
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-10 00:28:00 +00:00
|
|
|
pname = "ocaml${ocaml.version}-bos";
|
2022-03-21 08:13:25 +00:00
|
|
|
version = "0.2.1";
|
2022-02-10 00:28:00 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz";
|
2022-03-21 08:13:25 +00:00
|
|
|
sha256 = "sha256-2NYueGsQ1pfgRXIFqO7eqifrzJDxhV8Y3xkMrC49jzc=";
|
2021-01-21 00:24:35 +00:00
|
|
|
};
|
2017-03-16 07:11:33 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
|
|
|
buildInputs = [ topkg ];
|
2021-01-21 00:24:35 +00:00
|
|
|
propagatedBuildInputs = [ astring fmt fpath logs rresult ];
|
2017-03-16 07:11:33 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2017-03-16 07:11:33 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
meta = {
|
|
|
|
description = "Basic OS interaction for OCaml";
|
|
|
|
homepage = "https://erratique.ch/software/bos";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
2017-03-16 07:11:33 +00:00
|
|
|
}
|