diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-12-05 17:27:35 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-12-08 17:19:48 +0100 |
commit | 46281741b2be8fcee97bd72efa611a28f3a086e2 (patch) | |
tree | d490535dfbd5071c5dce5edae62dcf2ddacab635 /pkgs/development/ocaml-modules | |
parent | e56e8d4f7405f1739b63661f0905502f0f9eb2c8 (diff) | |
download | nixlib-46281741b2be8fcee97bd72efa611a28f3a086e2.tar nixlib-46281741b2be8fcee97bd72efa611a28f3a086e2.tar.gz nixlib-46281741b2be8fcee97bd72efa611a28f3a086e2.tar.bz2 nixlib-46281741b2be8fcee97bd72efa611a28f3a086e2.tar.lz nixlib-46281741b2be8fcee97bd72efa611a28f3a086e2.tar.xz nixlib-46281741b2be8fcee97bd72efa611a28f3a086e2.tar.zst nixlib-46281741b2be8fcee97bd72efa611a28f3a086e2.zip |
ocamlPackages.graphql: use Dune 2
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/graphql/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/graphql/lwt.nix | 6 | ||||
-rw-r--r-- | 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 22b7bf35f8e1..f3adfdc87a9d 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 37d75f9e22ea..187856da0d61 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 4172ccd8d043..62f8ca1ef129 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; |