diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/sexplib')
-rw-r--r-- | pkgs/development/ocaml-modules/sexplib/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/sexplib/default.nix b/pkgs/development/ocaml-modules/sexplib/default.nix new file mode 100644 index 00000000000..d2df36ec38d --- /dev/null +++ b/pkgs/development/ocaml-modules/sexplib/default.nix @@ -0,0 +1,26 @@ +{stdenv, fetchurl, ocaml, findlib, ocaml_typeconv}: + +# note: only works with ocaml>3.12 +# use version 5.2.0 if you still want an 3.11 version... + +stdenv.mkDerivation { + name = "ocaml-sexplib-7.0.4"; + + src = fetchurl { + url = "http://forge.ocamlcore.org/frs/download.php/699/sexplib-7.0.4.tar.gz"; + sha256 = "83c6c771f423d91bebc4f57202066358adf3775fb000dd780079f51436045a43"; + }; + + buildInputs = [ocaml findlib ocaml_typeconv]; + + createFindlibDestdir = true; + + configurePhase = "true"; + + meta = { + homepage = "http://forge.ocamlcore.org/projects/sexplib/"; + description = "Library for serializing OCaml values to and from S-expressions."; + license = "LGPL"; + platforms = ocaml.meta.platforms; + }; +} |