Files
nixpkgs/pkgs/development/ocaml-modules/csv/default.nix
T

27 lines
705 B
Nix
Raw Normal View History

2018-09-05 16:11:47 +00:00
{ stdenv, fetchurl, ocaml, findlib, dune }:
2017-07-12 20:24:54 +02:00
2017-09-20 05:38:42 +00:00
stdenv.mkDerivation rec {
2018-08-08 15:51:53 -07:00
version = "2.1";
2017-09-20 05:38:42 +00:00
name = "ocaml${ocaml.version}-csv-${version}";
src = fetchurl {
2018-08-08 15:51:53 -07:00
url = "https://github.com/Chris00/ocaml-csv/releases/download/2.1/csv-2.1.tbz";
sha256 = "0cgfb6cwhwy7ypc1i3jyfz6sdnykp75aqi6kk0g1a2d81yjwzbcg";
2017-09-20 05:38:42 +00:00
};
2014-09-21 11:02:55 +01:00
2017-09-20 05:38:42 +00:00
unpackCmd = "tar -xjf $src";
2014-08-17 00:31:35 +02:00
2018-09-05 16:11:47 +00:00
buildInputs = [ ocaml findlib dune ];
2014-08-17 00:31:35 +02:00
2018-09-05 16:11:47 +00:00
buildPhase = "dune build -p csv";
2014-08-17 00:31:35 +02:00
2018-09-05 16:11:47 +00:00
inherit (dune) installPhase;
2014-08-17 00:31:35 +02:00
2017-09-20 05:38:42 +00:00
meta = {
description = "A pure OCaml library to read and write CSV files";
license = stdenv.lib.licenses.lgpl21;
maintainers = [ stdenv.lib.maintainers.vbgl ];
2017-09-20 22:14:32 +02:00
homepage = https://github.com/Chris00/ocaml-csv;
2017-09-20 05:38:42 +00:00
inherit (ocaml.meta) platforms;
};
2014-08-17 00:31:35 +02:00
}