nixpkgs/pkgs/development/ocaml-modules/variantslib/default.nix
sternenseemann 4e42cac49d ocamlPackages: stdenv.lib → lib
This change was produced by searching for remaining occurrences of
stdenv.lib and replacing them manually.

Reference #108938.
2021-01-12 16:33:18 +01:00

27 lines
748 B
Nix

{ lib, stdenv, buildOcaml, ocaml, fetchurl, type_conv }:
if lib.versionAtLeast ocaml.version "4.06"
then throw "variantslib-109.15.03 is not available for OCaml ${ocaml.version}"
else
buildOcaml rec {
name = "variantslib";
version = "109.15.03";
minimumSupportedOcamlVersion = "4.00";
src = fetchurl {
url = "https://github.com/janestreet/variantslib/archive/${version}.tar.gz";
sha256 = "a948dcdd4ca54786fe0646386b6e37a9db03bf276c6557ea374d82740bf18055";
};
propagatedBuildInputs = [ type_conv ];
meta = with lib; {
homepage = "https://github.com/janestreet/variantslib";
description = "OCaml variants as first class values";
license = licenses.asl20;
maintainers = [ maintainers.ericbmerritt ];
};
}