1{ stdenv, fetchurl, ocaml, findlib, ounit }:
2
3stdenv.mkDerivation {
4 name = "ocaml-fileutils-0.5.0";
5
6 src = fetchurl {
7 url = https://forge.ocamlcore.org/frs/download.php/1531/ocaml-fileutils-0.5.0.tar.gz;
8 sha256 = "0xs96nlrrm335mcsgsxnqzspiqyfn26b0jjxm72br7c7ax534n47";
9 };
10
11 buildInputs = [ ocaml findlib ounit ];
12
13 configureFlags = "--enable-tests";
14 doCheck = true;
15 checkTarget = "test";
16
17 createFindlibDestdir = true;
18
19 preInstall = "make doc";
20
21 meta = {
22 homepage = https://forge.ocamlcore.org/projects/ocaml-fileutils/;
23 platforms = ocaml.meta.platforms or [];
24 description = "Library to provide pure OCaml functions to manipulate real file (POSIX like) and filename";
25 license = stdenv.lib.licenses.lgpl21Plus;
26 maintainers = with stdenv.lib.maintainers; [ vbgl ];
27 };
28}