2015-07-23 18:32:21 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ounit }:
|
2015-03-04 11:50:58 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-07-23 18:32:21 +01:00
|
|
|
name = "ocaml-fileutils-0.5.0";
|
2015-03-04 11:50:58 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-23 18:32:21 +01:00
|
|
|
url = https://forge.ocamlcore.org/frs/download.php/1531/ocaml-fileutils-0.5.0.tar.gz;
|
|
|
|
sha256 = "0xs96nlrrm335mcsgsxnqzspiqyfn26b0jjxm72br7c7ax534n47";
|
2015-03-04 11:50:58 +00:00
|
|
|
};
|
|
|
|
|
2015-07-23 18:32:21 +01:00
|
|
|
buildInputs = [ ocaml findlib ounit ];
|
|
|
|
|
|
|
|
configureFlags = "--enable-tests";
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2015-03-04 11:50:58 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2015-04-01 08:57:52 +01:00
|
|
|
preInstall = "make doc";
|
|
|
|
|
2015-03-04 11:50:58 +00:00
|
|
|
meta = {
|
|
|
|
homepage = https://forge.ocamlcore.org/projects/ocaml-fileutils/;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-03-04 11:50:58 +00:00
|
|
|
description = "Library to provide pure OCaml functions to manipulate real file (POSIX like) and filename";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|