Files
nixpkgs/pkgs/development/ocaml-modules/cstruct/sexp.nix
2026-09-11 13:56:37 +02:00

30 lines
393 B
Nix

{
lib,
buildDunePackage,
ocaml,
alcotest,
crowbar,
cstruct,
sexplib,
}:
if lib.versionOlder (cstruct.version or "1") "3" then
cstruct
else
buildDunePackage {
pname = "cstruct-sexp";
inherit (cstruct) version src meta;
doCheck = true;
checkInputs = [
alcotest
crowbar
];
propagatedBuildInputs = [
cstruct
sexplib
];
}