Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg
2, astring, fmt, fpath, logs, rresult
3}:
4
5stdenv.mkDerivation rec {
6 pname = "ocaml${ocaml.version}-bos";
7 version = "0.2.1";
8
9 src = fetchurl {
10 url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz";
11 sha256 = "sha256-2NYueGsQ1pfgRXIFqO7eqifrzJDxhV8Y3xkMrC49jzc=";
12 };
13
14 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
15 buildInputs = [ topkg ];
16 propagatedBuildInputs = [ astring fmt fpath logs rresult ];
17
18 strictDeps = true;
19
20 inherit (topkg) buildPhase installPhase;
21
22 meta = {
23 description = "Basic OS interaction for OCaml";
24 homepage = "https://erratique.ch/software/bos";
25 license = lib.licenses.isc;
26 maintainers = [ lib.maintainers.vbgl ];
27 inherit (ocaml.meta) platforms;
28 };
29}