nixpkgs/pkgs/development/tools/ocaml/ocamlmod/default.nix

33 lines
879 B
Nix
Raw Normal View History

2017-10-13 22:10:51 +02:00
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
2016-09-19 19:08:35 +02:00
stdenv.mkDerivation rec {
name = "ocamlmod-${version}";
2017-10-13 22:10:51 +02:00
version = "0.0.9";
src = fetchurl {
2017-10-13 22:10:51 +02:00
url = "https://forge.ocamlcore.org/frs/download.php/1702/ocamlmod-0.0.9.tar.gz";
sha256 = "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa";
};
2017-10-13 22:10:51 +02:00
buildInputs = [ ocaml findlib ocamlbuild ounit ];
2017-10-13 22:10:51 +02:00
configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
buildPhase = "ocaml setup.ml -build";
installPhase = "ocaml setup.ml -install";
2017-10-13 22:10:51 +02:00
doCheck = true;
checkPhase = "ocaml setup.ml -test";
dontStrip = true;
meta = {
homepage = http://forge.ocamlcore.org/projects/ocamlmod/ocamlmod;
description = "Generate OCaml modules from source files";
platforms = ocaml.meta.platforms or [];
maintainers = with stdenv.lib.maintainers; [
z77z
];
};
}