mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
29 lines
662 B
Nix
29 lines
662 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
buildDunePackage,
|
|
}:
|
|
|
|
buildDunePackage (finalAttrs: {
|
|
pname = "csv";
|
|
version = "2.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Chris00/ocaml-csv/releases/download/${finalAttrs.version}/csv-${finalAttrs.version}.tbz";
|
|
sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace src/dune --replace '(libraries bytes)' ""
|
|
'';
|
|
|
|
duneVersion = "3";
|
|
|
|
meta = {
|
|
description = "Pure OCaml library to read and write CSV files";
|
|
license = lib.licenses.lgpl21;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
homepage = "https://github.com/Chris00/ocaml-csv";
|
|
};
|
|
})
|