ocamlPackages.cudf: init 0.9

This commit is contained in:
superherointj 2021-06-08 22:08:57 -03:00 committed by Vincent Laporte
parent f6984fbe37
commit d930bfd5fa
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{ lib, fetchurl, stdenv, ocaml, ocamlbuild, findlib, ocaml_extlib, glib, perl, pkg-config, stdlib-shims, ounit }:
stdenv.mkDerivation {
pname = "ocaml${ocaml.version}-cudf";
version = "0.9";
src = fetchurl {
url = "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz";
sha256 = "sha256-mTLk2V3OI1sUNIYv84nM3reiirf0AuozG5ZzLCmn4Rw=";
};
buildFlags = [
"all"
"opt"
];
nativeBuildInputs = [
findlib
ocaml
ocamlbuild
pkg-config
];
buildInputs = [
glib
perl
stdlib-shims
];
propagatedBuildInputs = [
ocaml_extlib
];
checkTarget = [
"all"
"test"
];
checkInputs = [
ounit
];
doCheck = true;
preInstall = "mkdir -p $OCAMLFIND_DESTDIR";
installFlags = "BINDIR=$(out)/bin";
# passthru.tests = { inherit dose3; }; # To-Do: To be enabled when Dose3 PR is accepted.
meta = with lib; {
description = "A library for CUDF format";
homepage = "http://www.mancoosi.org/cudf/";
downloadPage = "https://gforge.inria.fr/projects/cudf/";
license = licenses.lgpl3;
maintainers = with maintainers; [ superherointj ];
};
}

View File

@ -233,6 +233,8 @@ let
csv-lwt = callPackage ../development/ocaml-modules/csv/lwt.nix { };
cudf = callPackage ../development/ocaml-modules/cudf { };
curly = callPackage ../development/ocaml-modules/curly {
inherit (pkgs) curl;
};