summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-03-16 07:11:33 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-03-16 07:11:33 +0000
commit49c18cc75d394c57acffa594b170d36014a88b3a (patch)
tree3438c5a70d9d3ee69a990dcb4f0e3b3f634e222a
parentf60fec99d19f0f2181661d65f73aca3a85ca81c4 (diff)
downloadnixlib-49c18cc75d394c57acffa594b170d36014a88b3a.tar
nixlib-49c18cc75d394c57acffa594b170d36014a88b3a.tar.gz
nixlib-49c18cc75d394c57acffa594b170d36014a88b3a.tar.bz2
nixlib-49c18cc75d394c57acffa594b170d36014a88b3a.tar.lz
nixlib-49c18cc75d394c57acffa594b170d36014a88b3a.tar.xz
nixlib-49c18cc75d394c57acffa594b170d36014a88b3a.tar.zst
nixlib-49c18cc75d394c57acffa594b170d36014a88b3a.zip
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
-rw-r--r--pkgs/development/ocaml-modules/bos/default.nix27
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/bos/default.nix b/pkgs/development/ocaml-modules/bos/default.nix
new file mode 100644
index 000000000000..eb1e8d15feab
--- /dev/null
+++ b/pkgs/development/ocaml-modules/bos/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
+, astring, fmt, fpath, logs, rresult
+}:
+
+stdenv.mkDerivation rec {
+	name = "ocaml${ocaml.version}-bos-${version}";
+	version = "0.1.4";
+	src = fetchurl {
+		url = "http://erratique.ch/software/bos/releases/bos-${version}.tbz";
+		sha256 = "1ly66lysk4w6mdy4k1n3ynlpfpq7lw4wshcpzgx58v6x613w5s7q";
+	};
+
+	unpackCmd = "tar xjf $src";
+
+	buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
+	propagatedBuildInputs = [ astring fmt fpath logs rresult ];
+
+	inherit (topkg) buildPhase installPhase;
+
+	meta = {
+		description = "Basic OS interaction for OCaml";
+		homepage = http://erratique.ch/software/bos;
+		license = stdenv.lib.licenses.isc;
+		maintainers = [ stdenv.lib.maintainers.vbgl ];
+		inherit (ocaml.meta) platforms;
+	};
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index aeef0a2859bb..43cd2e22e4e3 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -53,6 +53,8 @@ let
 
     bolt = callPackage ../development/ocaml-modules/bolt { };
 
+    bos = callPackage ../development/ocaml-modules/bos { };
+
     bitstring =
       if lib.versionOlder "4.02" ocaml.version
       then callPackage ../development/ocaml-modules/bitstring { }