mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
8751d1ea1a
The actual name of the package is type_conv (https://github.com/janestreet/type_conv). Having it named ocaml_typeconv adds a verbosity that isn't required and actually makes the package harder to find.
31 lines
835 B
Nix
31 lines
835 B
Nix
{stdenv, fetchurl, ocaml, findlib, type_conv, camlp4}:
|
|
|
|
let
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
in
|
|
|
|
assert stdenv.lib.versionOlder "3.12" ocaml_version;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml-sexplib-108.08.00";
|
|
|
|
src = fetchurl {
|
|
url = https://ocaml.janestreet.com/ocaml-core/108.08.00/individual/sexplib-108.08.00.tar.gz;
|
|
sha256 = "11z1k1d7dbb5m957klgalimpr0r602xp5zkkbgbffib1bphasarg";
|
|
};
|
|
|
|
buildInputs = [ocaml findlib];
|
|
propagatedBuildInputs = [type_conv camlp4];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
branch = "108";
|
|
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;
|
|
};
|
|
}
|