Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 28 lines 854 B view raw
1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }: 2 3stdenv.mkDerivation { 4 name = "ocaml${ocaml.version}-fileutils-0.5.3"; 5 6 src = fetchurl { 7 url = https://forge.ocamlcore.org/frs/download.php/1728/ocaml-fileutils-0.5.3.tar.gz; 8 sha256 = "1rc4cqlvdhbs55i85zfbfhz938fsy4fj6kwlkfm3ra7bpwn8bmpd"; 9 }; 10 11 buildInputs = [ ocaml findlib ocamlbuild 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}