Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bos provides support for basic and robust interaction with the operating system in OCaml. Homepage: http://erratique.ch/software/bos
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters