summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/dbf/default.nix
blob: fa5271c78de05a059dba97df0f2a97d9ab4ce477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  ppx_cstruct,
  rresult,
  cstruct-unix,
  core_kernel,
}:

buildDunePackage (finalAttrs: {
  pname = "dbf";
  version = "0.2.0";

  minimalOCamlVersion = "4.08";

  duneVersion = "3";

  src = fetchFromGitHub {
    owner = "pveber";
    repo = "dbf";
    rev = "v${finalAttrs.version}";
    hash = "sha256-096GodM3J/4dsVdylG+6xz/p6ogUkhDGdFjiPwl/jLQ=";
  };

  buildInputs = [ ppx_cstruct ];
  propagatedBuildInputs = [
    rresult
    cstruct-unix
    core_kernel
  ];

  meta = {
    description = "DBF format parsing";
    homepage = "https://github.com/pveber/dbf";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.deltadelta ];
  };
})