diff --git a/pkgs/development/ocaml-modules/graphql/cohttp.nix b/pkgs/development/ocaml-modules/graphql/cohttp.nix index c60745b23cd3..cd326bdde201 100644 --- a/pkgs/development/ocaml-modules/graphql/cohttp.nix +++ b/pkgs/development/ocaml-modules/graphql/cohttp.nix @@ -12,7 +12,7 @@ graphql-lwt, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "graphql-cohttp"; inherit (graphql) version src; @@ -28,7 +28,7 @@ buildDunePackage rec { ocplib-endian ]; - checkInputs = lib.optionals doCheck [ + checkInputs = lib.optionals finalAttrs.doCheck [ alcotest cohttp-lwt-unix graphql-lwt @@ -45,4 +45,4 @@ buildDunePackage rec { description = "Run GraphQL servers with “cohttp”"; }; -} +})