summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cstruct/sexp.nix
blob: 091a6ab4defae7edf5a755f030affc47e68e537c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ 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 ];
}