csvtool: init at 2.4 (#122855)
This commit is contained in:
parent
266f6ee63a
commit
2ff04470d1
16
pkgs/development/ocaml-modules/csv/csvtool.nix
Normal file
16
pkgs/development/ocaml-modules/csv/csvtool.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ lib, ocamlPackages }:
|
||||||
|
|
||||||
|
let inherit (ocamlPackages) buildDunePackage csv uutf; in
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "csvtool";
|
||||||
|
inherit (csv) src version useDune2;
|
||||||
|
|
||||||
|
buildInputs = [ csv uutf ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = csv.meta // {
|
||||||
|
description = "Command line tool for handling CSV files";
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,13 +4,13 @@ buildDunePackage rec {
|
||||||
pname = "csv";
|
pname = "csv";
|
||||||
version = "2.4";
|
version = "2.4";
|
||||||
|
|
||||||
useDune2 = true;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz";
|
url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz";
|
||||||
sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk";
|
sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A pure OCaml library to read and write CSV files";
|
description = "A pure OCaml library to read and write CSV files";
|
||||||
license = lib.licenses.lgpl21;
|
license = lib.licenses.lgpl21;
|
||||||
|
|
|
@ -2296,6 +2296,8 @@ in
|
||||||
|
|
||||||
csvkit = callPackage ../tools/text/csvkit { };
|
csvkit = callPackage ../tools/text/csvkit { };
|
||||||
|
|
||||||
|
csvtool = callPackage ../development/ocaml-modules/csv/csvtool.nix { };
|
||||||
|
|
||||||
csv2latex = callPackage ../tools/misc/csv2latex { };
|
csv2latex = callPackage ../tools/misc/csv2latex { };
|
||||||
|
|
||||||
csvs-to-sqlite = with python3Packages; toPythonApplication csvs-to-sqlite;
|
csvs-to-sqlite = with python3Packages; toPythonApplication csvs-to-sqlite;
|
||||||
|
|
Loading…
Reference in a new issue