2014-11-09 01:47:46 +00:00
|
|
|
{stdenv, fetchgit, ocaml, findlib, ocaml_oasis, ocaml_data_notation, ocaml_optcomp, camlp4}:
|
2014-05-17 11:52:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocsigen-deriving";
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/ocsigen/deriving";
|
|
|
|
rev = "refs/tags/0.6.2";
|
|
|
|
sha256 = "2b3bf3f4972d0e6eaf075f7353ce482b776726e0cd04947a89b7156384ec0662";
|
|
|
|
};
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2014-11-09 01:47:46 +00:00
|
|
|
buildInputs = [ocaml findlib ocaml_oasis ocaml_data_notation ocaml_optcomp camlp4];
|
2014-05-17 11:52:37 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
make setup-dev.exe
|
|
|
|
./setup-dev.exe -configure --prefix $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/ocsigen/deriving;
|
|
|
|
description = "Extension to OCaml for deriving functions from type declarations";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-05-17 11:52:37 +01:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.gal_bolle
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|