2016-12-01 23:05:25 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, oasis, ocaml_optcomp, camlp4 }:
|
2015-02-28 16:48:16 +01:00
|
|
|
|
2016-12-01 23:05:25 +01:00
|
|
|
let version = "0.7.1"; in
|
2014-05-17 12:52:37 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-02-28 16:48:16 +01:00
|
|
|
name = "ocsigen-deriving-${version}";
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocsigen/deriving/archive/${version}.tar.gz";
|
2016-12-01 23:05:25 +01:00
|
|
|
sha256 = "0gg3nr3iic4rwqrcc0qvfm9x0x57zclvdsnpy0z8rv2fl5isbzms";
|
2014-05-17 12:52:37 +02:00
|
|
|
};
|
2014-11-06 01:44:33 +01:00
|
|
|
|
2016-12-01 23:05:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild oasis ocaml_optcomp camlp4 ];
|
2014-05-17 12:52:37 +02:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/ocsigen/deriving;
|
|
|
|
description = "Extension to OCaml for deriving functions from type declarations";
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-02-28 16:48:16 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [
|
|
|
|
gal_bolle vbgl
|
2014-05-17 12:52:37 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|