From 46281741b2be8fcee97bd72efa611a28f3a086e2 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 5 Dec 2020 17:27:35 +0100 Subject: [PATCH] ocamlPackages.graphql: use Dune 2 --- pkgs/development/ocaml-modules/graphql/default.nix | 6 +++--- pkgs/development/ocaml-modules/graphql/lwt.nix | 6 +++--- pkgs/development/ocaml-modules/graphql/parser.nix | 4 +++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/development/ocaml-modules/graphql/default.nix b/pkgs/development/ocaml-modules/graphql/default.nix index 22b7bf35f8e..f3adfdc87a9 100644 --- a/pkgs/development/ocaml-modules/graphql/default.nix +++ b/pkgs/development/ocaml-modules/graphql/default.nix @@ -1,13 +1,13 @@ -{ lib, buildDunePackage, alcotest, graphql_parser, rresult, yojson }: +{ buildDunePackage, alcotest, graphql_parser, rresult, yojson }: buildDunePackage rec { pname = "graphql"; - inherit (graphql_parser) version src; + inherit (graphql_parser) version useDune2 src; propagatedBuildInputs = [ graphql_parser rresult yojson ]; - checkInputs = lib.optional doCheck alcotest; + checkInputs = [ alcotest ]; doCheck = true; diff --git a/pkgs/development/ocaml-modules/graphql/lwt.nix b/pkgs/development/ocaml-modules/graphql/lwt.nix index 37d75f9e22e..187856da0d6 100644 --- a/pkgs/development/ocaml-modules/graphql/lwt.nix +++ b/pkgs/development/ocaml-modules/graphql/lwt.nix @@ -1,13 +1,13 @@ -{ lib, buildDunePackage, alcotest, graphql, ocaml_lwt }: +{ buildDunePackage, alcotest, graphql, ocaml_lwt }: buildDunePackage rec { pname = "graphql-lwt"; - inherit (graphql) version src; + inherit (graphql) version useDune2 src; propagatedBuildInputs = [ graphql ocaml_lwt ]; - checkInputs = lib.optional doCheck alcotest; + checkInputs = [ alcotest ]; doCheck = true; diff --git a/pkgs/development/ocaml-modules/graphql/parser.nix b/pkgs/development/ocaml-modules/graphql/parser.nix index 4172ccd8d04..62f8ca1ef12 100644 --- a/pkgs/development/ocaml-modules/graphql/parser.nix +++ b/pkgs/development/ocaml-modules/graphql/parser.nix @@ -4,6 +4,8 @@ buildDunePackage rec { pname = "graphql_parser"; version = "0.13.0"; + useDune2 = true; + minimumOCamlVersion = "4.03"; src = fetchurl { @@ -14,7 +16,7 @@ buildDunePackage rec { nativeBuildInputs = [ menhir ]; propagatedBuildInputs = [ fmt re ]; - checkInputs = lib.optional doCheck alcotest; + checkInputs = [ alcotest ]; doCheck = true;