summary refs log tree commit diff
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2021-06-08 22:08:57 -0300
committerVincent Laporte <vbgl@users.noreply.github.com>2021-06-10 23:47:12 +0200
commitd930bfd5fad757b96412c530b860ec9d22e1095b (patch)
tree0c8963fe3fdda3d49abc34ff6a5d60dfc48e0dca
parentf6984fbe37d8a1dfc540aa05a3a95425bfc063f6 (diff)
downloadnixpkgs-d930bfd5fad757b96412c530b860ec9d22e1095b.tar
nixpkgs-d930bfd5fad757b96412c530b860ec9d22e1095b.tar.gz
nixpkgs-d930bfd5fad757b96412c530b860ec9d22e1095b.tar.bz2
nixpkgs-d930bfd5fad757b96412c530b860ec9d22e1095b.tar.lz
nixpkgs-d930bfd5fad757b96412c530b860ec9d22e1095b.tar.xz
nixpkgs-d930bfd5fad757b96412c530b860ec9d22e1095b.tar.zst
nixpkgs-d930bfd5fad757b96412c530b860ec9d22e1095b.zip
ocamlPackages.cudf: init 0.9
-rw-r--r--pkgs/development/ocaml-modules/cudf/default.nix52
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/cudf/default.nix b/pkgs/development/ocaml-modules/cudf/default.nix
new file mode 100644
index 00000000000..5bd768e6451
--- /dev/null
+++ b/pkgs/development/ocaml-modules/cudf/default.nix
@@ -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 ];
+  };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 4feaf9f6f74..8314014e937 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -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;
     };