about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/sexplib/112.24.01.nix
blob: fe7b9020dae26ba8962d198f6ff0f32602484fbb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, buildOcaml, fetchurl, ocaml, type_conv, camlp4 }:

if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|| stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "sexlib-112.24.01 is not available for OCaml ${ocaml.version}" else

buildOcaml rec {
  minimumSupportedOcamlVersion = "4.02";
  name = "sexplib";
  version = "112.24.01";

  src = fetchurl {
    url = "https://github.com/janestreet/sexplib/archive/${version}.tar.gz";
    sha256 = "5f776aee295cc51c952aecd4b74b52dd2b850c665cc25b3d69bc42014d3ba073";
  };

  propagatedBuildInputs = [ type_conv camlp4 ];

  meta = with stdenv.lib; {
    homepage = "https://ocaml.janestreet.com/";
    description = "Library for serializing OCaml values to and from S-expressions";
    license = licenses.asl20;
    maintainers = [ maintainers.ericbmerritt ];
  };
}