at 18.03-beta 36 lines 992 B view raw
1{ stdenv, fetchurl, fetchpatch, ocaml, findlib, ocamlbuild }: 2 3stdenv.mkDerivation { 4 name = "ounit-2.0.0"; 5 6 src = fetchurl { 7 url = https://forge.ocamlcore.org/frs/download.php/1258/ounit-2.0.0.tar.gz; 8 sha256 = "118xsadrx84pif9vaq13hv4yh22w9kmr0ypvhrs0viir1jr0ajjd"; 9 }; 10 11 patches = with stdenv.lib; 12 optional (versionAtLeast ocaml.version "4.02") (fetchpatch { 13 url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ounit/ounit.2.0.0/files/safe-string.patch"; 14 sha256 = "0hbd2sqdz75lv5ax82yhsfdk1dlcvq12xpys6n85ysmrl0c3d3lk"; 15 }); 16 17 buildInputs = [ ocaml findlib ocamlbuild ]; 18 19 dontAddPrefix = true; 20 21 doCheck = true; 22 23 checkTarget = "test"; 24 25 createFindlibDestdir = true; 26 27 meta = { 28 homepage = http://ounit.forge.ocamlcore.org/; 29 description = "Unit test framework for OCaml"; 30 license = stdenv.lib.licenses.mit; 31 platforms = ocaml.meta.platforms or []; 32 maintainers = [ 33 stdenv.lib.maintainers.z77z 34 ]; 35 }; 36}