mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +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.
30 lines
679 B
Nix
30 lines
679 B
Nix
{ lib, buildDunePackage, fetchFromGitHub, ocaml, alcotest, result }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "dispatch";
|
|
version = "0.5.0";
|
|
|
|
useDune2 = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "inhabitedtype";
|
|
repo = "ocaml-dispatch";
|
|
rev = version;
|
|
sha256 = "12r39ylbxc297cbwjadhd1ghxnwwcdzfjk68r97wim8hcgzxyxv4";
|
|
};
|
|
|
|
propagatedBuildInputs = [ result ];
|
|
|
|
nativeCheckInputs = [ alcotest ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
meta = {
|
|
inherit (src.meta) homepage;
|
|
license = lib.licenses.bsd3;
|
|
description = "Path-based dispatching for client- and server-side applications";
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
};
|
|
|
|
}
|