From 25947abcf180ba4ec3cfd558b49fa8fd0817b826 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 28 Feb 2021 21:57:17 +0100 Subject: [PATCH] ocamlPackages.ppx_derivers: use Dune 2 --- pkgs/development/ocaml-modules/ppx_derivers/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/ppx_derivers/default.nix b/pkgs/development/ocaml-modules/ppx_derivers/default.nix index 3d4675ed90b9..84dda38846fe 100644 --- a/pkgs/development/ocaml-modules/ppx_derivers/default.nix +++ b/pkgs/development/ocaml-modules/ppx_derivers/default.nix @@ -1,9 +1,11 @@ -{ lib, fetchFromGitHub, buildDunePackage }: +{ lib, fetchFromGitHub, buildDunePackage, ocaml }: buildDunePackage rec { pname = "ppx_derivers"; version = "1.2.1"; + useDune2 = lib.versionAtLeast ocaml.version "4.08"; + minimumOCamlVersion = "4.02"; src = fetchFromGitHub {