mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
a97cf72a27
And requires camlp4
30 lines
824 B
Nix
30 lines
824 B
Nix
{stdenv, fetchurl, ocaml, findlib, ocaml_typeconv, camlp4}:
|
|
|
|
let
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
in
|
|
|
|
assert stdenv.lib.versionOlder "4.00" ocaml_version;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml-sexplib-111.25.0";
|
|
|
|
src = fetchurl {
|
|
url = https://ocaml.janestreet.com/ocaml-core/111.25.00/individual/sexplib-111.25.00.tar.gz;
|
|
sha256 = "0qh0zqp5nakqpmmhh4x7cg03vqj3j2bj4zj0nqdlksai188p9ila";
|
|
};
|
|
|
|
buildInputs = [ocaml findlib];
|
|
propagatedBuildInputs = [ocaml_typeconv camlp4];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
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.vbgl ];
|
|
platforms = ocaml.meta.platforms;
|
|
};
|
|
}
|