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.
15 lines
416 B
Nix
15 lines
416 B
Nix
{ lib, ocaml, buildDunePackage, uri, ounit, ppx_sexp_conv, sexplib0 }:
|
|
|
|
if lib.versionOlder ocaml.version "4.04"
|
|
then throw "uri-sexp is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
buildDunePackage {
|
|
pname = "uri-sexp";
|
|
inherit (uri) version useDune2 src meta;
|
|
|
|
nativeCheckInputs = [ ounit ];
|
|
propagatedBuildInputs = [ ppx_sexp_conv sexplib0 uri ];
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
}
|