ocamlPackages.csexp: fix minimum OCaml version

This commit is contained in:
Hongchang Wu 2020-09-27 11:33:13 -04:00 committed by Vincent Laporte
parent 4271a89175
commit f12817d400

View File

@ -1,19 +1,17 @@
{ lib, fetchurl, buildDunePackage }: { lib, fetchurl, buildDunePackage, result }:
buildDunePackage rec { buildDunePackage rec {
pname = "csexp"; pname = "csexp";
version = "1.3.2"; version = "1.3.2";
minimumOCamlVersion = "4.08"; minimumOCamlVersion = "4.02.3";
src = fetchurl { src = fetchurl {
url = "https://github.com/ocaml-dune/csexp/releases/download/${version}/csexp-${version}.tbz"; url = "https://github.com/ocaml-dune/csexp/releases/download/${version}/csexp-${version}.tbz";
sha256 = "0jhwrxfjb0x31xj4g4b89fzw34sq19j0rq2hs2zyh1vz4xxl47zj"; sha256 = "0jhwrxfjb0x31xj4g4b89fzw34sq19j0rq2hs2zyh1vz4xxl47zj";
}; };
postPatch = '' propagatedBuildInputs = [ result ];
substituteInPlace src/csexp.ml --replace Result.result Result.t
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/ocaml-dune/csexp"; homepage = "https://github.com/ocaml-dune/csexp";