Skip to content

Commit

Permalink
ocamlPackages.bos: init at 0.1.4
Browse files Browse the repository at this point in the history
Bos provides support for basic and robust interaction
with the operating system in OCaml.

Homepage: http://erratique.ch/software/bos
  • Loading branch information
vbgl committed Mar 16, 2017
1 parent f60fec9 commit 49c18cc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions 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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Expand Up @@ -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 { }
Expand Down

0 comments on commit 49c18cc

Please sign in to comment.