nixpkgs/pkgs/development/ocaml-modules/ounit/default.nix
Vincent Laporte d274ee3f80 Adds camlp4
Camlp4 is a software system for writing extensible parsers for
programming languages.

Camlp4 was part of the official OCaml distribution until its version
4.01.0.

Homepage: https://github.com/ocaml/camlp4
2014-09-23 09:34:13 +01:00

35 lines
737 B
Nix

{stdenv, fetchurl, ocaml, findlib, camlp4}:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
in
stdenv.mkDerivation {
name = "ounit-2.0.0";
src = fetchurl {
url = http://forge.ocamlcore.org/frs/download.php/886/ounit-2.0.0.tar.gz;
sha256 = "1qw8k2czy0bxhsf25kfpgywhpqmg7bi57rmyhlnmbddmvc61pg76";
};
buildInputs = [ocaml findlib camlp4];
dontAddPrefix = true;
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
meta = {
homepage = http://www.xs4all.nl/~mmzeeman/ocaml/;
description = "Unit test framework for OCaml";
license = stdenv.lib.licenses.mit;
platforms = ocaml.meta.platforms;
maintainers = [
stdenv.lib.maintainers.z77z
];
};
}