2016-12-01 22:05:25 +00:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, oasis, ocaml_optcomp, camlp4 }:
|
2015-02-28 15:48:16 +00:00
|
|
|
|
2016-12-01 22:05:25 +00:00
|
|
|
let version = "0.7.1"; in
|
2014-05-17 11:52:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-02-28 15:48:16 +00:00
|
|
|
name = "ocsigen-deriving-${version}";
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocsigen/deriving/archive/${version}.tar.gz";
|
2016-12-01 22:05:25 +00:00
|
|
|
sha256 = "0gg3nr3iic4rwqrcc0qvfm9x0x57zclvdsnpy0z8rv2fl5isbzms";
|
2014-05-17 11:52:37 +01:00
|
|
|
};
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2016-12-01 22:05:25 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild oasis ocaml_optcomp camlp4 ];
|
2014-05-17 11:52:37 +01:00
|
|
|
|
|
|
|
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;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-02-28 15:48:16 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [
|
|
|
|
gal_bolle vbgl
|
2014-05-17 11:52:37 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|