1{ lib, fetchurl, buildDunePackage }:
2
3buildDunePackage rec {
4 pname = "csv";
5 version = "2.4";
6
7 src = fetchurl {
8 url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz";
9 sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk";
10 };
11
12 preConfigure = ''
13 substituteInPlace src/dune --replace '(libraries bytes)' ""
14 '';
15
16 duneVersion = "3";
17
18 meta = {
19 description = "A pure OCaml library to read and write CSV files";
20 license = lib.licenses.lgpl21;
21 maintainers = [ lib.maintainers.vbgl ];
22 homepage = "https://github.com/Chris00/ocaml-csv";
23 };
24}