Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 51 lines 867 B view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 ocaml, 6 findlib, 7 ocamlbuild, 8 topkg, 9 astring, 10 fmt, 11 fpath, 12 logs, 13 rresult, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "ocaml${ocaml.version}-bos"; 18 version = "0.2.1"; 19 20 src = fetchurl { 21 url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz"; 22 sha256 = "sha256-2NYueGsQ1pfgRXIFqO7eqifrzJDxhV8Y3xkMrC49jzc="; 23 }; 24 25 nativeBuildInputs = [ 26 ocaml 27 findlib 28 ocamlbuild 29 topkg 30 ]; 31 buildInputs = [ topkg ]; 32 propagatedBuildInputs = [ 33 astring 34 fmt 35 fpath 36 logs 37 rresult 38 ]; 39 40 strictDeps = true; 41 42 inherit (topkg) buildPhase installPhase; 43 44 meta = { 45 description = "Basic OS interaction for OCaml"; 46 homepage = "https://erratique.ch/software/bos"; 47 license = lib.licenses.isc; 48 maintainers = [ lib.maintainers.vbgl ]; 49 inherit (ocaml.meta) platforms; 50 }; 51}