Unverified Commit 635e71f6 authored by Vincent Laporte's avatar Vincent Laporte
Browse files

ocamlPackages.cudf: 0.9 → 0.10

parent eb464f27
Loading
Loading
Loading
Loading
+12 −31
Original line number Diff line number Diff line
{ lib, fetchurl, stdenv, ocaml, ocamlbuild, findlib, extlib, glib, perl, pkg-config, stdlib-shims, ounit }:
{ lib, buildDunePackage, ocaml, fetchFromGitLab, extlib, ounit2 }:

stdenv.mkDerivation rec {
  pname = "ocaml${ocaml.version}-cudf";
  version = "0.9";
buildDunePackage rec {
  pname = "cudf";
  version = "0.10";

  src = fetchurl {
    url = "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz";
    sha256 = "sha256-mTLk2V3OI1sUNIYv84nM3reiirf0AuozG5ZzLCmn4Rw=";
  };
  minimalOCamlVersion = "4.07";

  buildFlags = [
    "all"
    "opt"
  ];
  src = fetchFromGitLab {
    owner = "irill";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-E4KXKnso/Q3ZwcYpKPgvswNR9qd/lafKljPMxfStedM=";
  };

  nativeBuildInputs = [
    findlib
    ocaml
    ocamlbuild
    pkg-config
    perl
  ];
  buildInputs = [
    glib
    stdlib-shims
  ];
  propagatedBuildInputs = [
    extlib
  ];

  checkTarget = [
    "all"
    "test"
  ];
  checkInputs = [
    ounit
    ounit2
  ];
  doCheck = lib.versionAtLeast ocaml.version "4.08";

  preInstall = "mkdir -p $OCAMLFIND_DESTDIR";
  installFlags = [ "BINDIR=$(out)/bin" ];

  meta = with lib; {
    description = "A library for CUDF format";
    homepage = "https://www.mancoosi.org/cudf/";