@@ -1,15 +1,21 @@
1−{ stdenv, buildOcaml, fetchzip, cmdliner, stringext }:
1+{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, topkg, opam, cmdliner, astring, fmt, result }:
22
3−buildOcaml rec {
4− name = "alcotest";
5− version = "0.4.5";
3+stdenv.mkDerivation rec {
4+ name = "ocaml${ocaml.version}-alcotest-${version}";
5+ version = "0.7.2";
66
77 src = fetchzip {
88 url = "https://github.com/mirage/alcotest/archive/${version}.tar.gz";
9− sha256 = "1wcn9hkjf4cbnrz99w940qfjpi0lvd8v63yxwpnafkff871dwk6k";
9+ sha256 = "1qgsz2zz5ky6s5pf3j3shc4fjc36rqnjflk8x0wl1fcpvvkr52md";
1010 };
1111
12− propagatedBuildInputs = [ cmdliner stringext ];
12+ buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
13+
14+ propagatedBuildInputs = [ cmdliner astring fmt result ];
15+
16+ inherit (topkg) buildPhase installPhase;
17+
18+ createFindlibDestdir = true;
1319
1420 meta = with stdenv.lib; {
1521 homepage = https://github.com/mirage/alcotest;