about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHongchang Wu <wuhc85@gmail.com>2020-09-27 11:33:13 -0400
committerVincent Laporte <vbgl@users.noreply.github.com>2020-10-01 15:16:51 +0200
commitf12817d400262b84798c270e8884775f766dc0ea (patch)
tree962d6c3519ea6666ea2bec8c38cc14f79281597a
parent4271a89175911f8d76429b363edd339873ad8b77 (diff)
ocamlPackages.csexp: fix minimum OCaml version
-rw-r--r--pkgs/development/ocaml-modules/csexp/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/csexp/default.nix b/pkgs/development/ocaml-modules/csexp/default.nix
index 610de2cb8adab..0ca0943822287 100644
--- a/pkgs/development/ocaml-modules/csexp/default.nix
+++ b/pkgs/development/ocaml-modules/csexp/default.nix
@@ -1,19 +1,17 @@
-{ lib, fetchurl, buildDunePackage }:
+{ lib, fetchurl, buildDunePackage, result }:
 
 buildDunePackage rec {
   pname = "csexp";
   version = "1.3.2";
 
-  minimumOCamlVersion = "4.08";
+  minimumOCamlVersion = "4.02.3";
 
   src = fetchurl {
     url = "https://github.com/ocaml-dune/csexp/releases/download/${version}/csexp-${version}.tbz";
     sha256 = "0jhwrxfjb0x31xj4g4b89fzw34sq19j0rq2hs2zyh1vz4xxl47zj";
   };
 
-  postPatch = ''
-    substituteInPlace src/csexp.ml --replace Result.result Result.t
-  '';
+  propagatedBuildInputs = [ result ];
 
   meta = with lib; {
     homepage = "https://github.com/ocaml-dune/csexp";