about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/csv/default.nix
blob: 7510dcede3a95f4cef2c3c2632f03bde280892c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, fetchurl, buildDunePackage }:

buildDunePackage rec {
  pname = "csv";
  version = "2.4";

  src = fetchurl {
    url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz";
    sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk";
  };

  preConfigure = ''
    substituteInPlace src/dune --replace '(libraries bytes)' ""
  '';

  duneVersion = "3";

  meta = {
    description = "A pure OCaml library to read and write CSV files";
    license = lib.licenses.lgpl21;
    maintainers = [ lib.maintainers.vbgl ];
    homepage = "https://github.com/Chris00/ocaml-csv";
  };
}