git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.bos: init at 0.1.4

Bos provides support for basic and robust interaction with the operating system in OCaml. Homepage: http://erratique.ch/software/bos

commit49c18cc75d394c57acffa594b170d36014a88b3a authorVincent Laporte <Vincent.Laporte@gmail.com> dateThu 16 Mar 2017, 07:11 (10 years ago) parentf60fec9
2 files changed+29
pkgs/development/ocaml-modules/bos/default.nix+27 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/bos/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
2+, astring, fmt, fpath, logs, rresult
3+}:
4+
5+stdenv.mkDerivation rec {
6+ name = "ocaml${ocaml.version}-bos-${version}";
7+ version = "0.1.4";
8+ src = fetchurl {
9+ url = "http://erratique.ch/software/bos/releases/bos-${version}.tbz";
10+ sha256 = "1ly66lysk4w6mdy4k1n3ynlpfpq7lw4wshcpzgx58v6x613w5s7q";
11+ };
12+
13+ unpackCmd = "tar xjf $src";
14+
15+ buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
16+ propagatedBuildInputs = [ astring fmt fpath logs rresult ];
17+
18+ inherit (topkg) buildPhase installPhase;
19+
20+ meta = {
21+ description = "Basic OS interaction for OCaml";
22+ homepage = http://erratique.ch/software/bos;
23+ license = stdenv.lib.licenses.isc;
24+ maintainers = [ stdenv.lib.maintainers.vbgl ];
25+ inherit (ocaml.meta) platforms;
26+ };
27+}
pkgs/top-level/ocaml-packages.nix+2
@@ -53,6 +53,8 @@ let
5353
5454 bolt = callPackage ../development/ocaml-modules/bolt { };
5555
56+ bos = callPackage ../development/ocaml-modules/bos { };
57+
5658 bitstring =
5759 if lib.versionOlder "4.02" ocaml.version
5860 then callPackage ../development/ocaml-modules/bitstring { }