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.
18 lines
356 B
Nix
18 lines
356 B
Nix
{ lib, buildDunePackage, ocaml, alcotest, cstruct, sexplib }:
|
|
|
|
if lib.versionOlder (cstruct.version or "1") "3"
|
|
then cstruct
|
|
else
|
|
|
|
buildDunePackage rec {
|
|
pname = "cstruct-sexp";
|
|
inherit (cstruct) version src meta;
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
doCheck = true;
|
|
nativeCheckInputs = [ alcotest ];
|
|
|
|
propagatedBuildInputs = [ cstruct sexplib ];
|
|
}
|