Skip to content

Commit

Permalink
ocamlPackages.graphql: use Dune 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Dec 8, 2020
1 parent e56e8d4 commit 4628174
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pkgs/development/ocaml-modules/graphql/default.nix
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/ocaml-modules/graphql/lwt.nix
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/ocaml-modules/graphql/parser.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ buildDunePackage rec {
pname = "graphql_parser";
version = "0.13.0";

useDune2 = true;

minimumOCamlVersion = "4.03";

src = fetchurl {
Expand All @@ -14,7 +16,7 @@ buildDunePackage rec {
nativeBuildInputs = [ menhir ];
propagatedBuildInputs = [ fmt re ];

checkInputs = lib.optional doCheck alcotest;
checkInputs = [ alcotest ];

doCheck = true;

Expand Down

0 comments on commit 4628174

Please sign in to comment.