mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
27 lines
563 B
Nix
27 lines
563 B
Nix
{ lib, buildDunePackage, ocaml-crunch
|
|
, astring, cohttp, digestif, graphql, ocplib-endian
|
|
, alcotest, cohttp-lwt-unix, graphql-lwt
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "graphql-cohttp";
|
|
|
|
inherit (graphql) version src;
|
|
|
|
duneVersion = "3";
|
|
|
|
nativeBuildInputs = [ ocaml-crunch ];
|
|
propagatedBuildInputs = [ astring cohttp digestif graphql ocplib-endian ];
|
|
|
|
nativeCheckInputs = lib.optionals doCheck [ alcotest cohttp-lwt-unix graphql-lwt ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = graphql.meta // {
|
|
description = "Run GraphQL servers with “cohttp”";
|
|
};
|
|
|
|
}
|
|
|
|
|