ocamlPackages.cudf: 0.9 → 0.10
This commit is contained in:
@@ -1,46 +1,27 @@
|
||||
{ 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";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "irill";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-E4KXKnso/Q3ZwcYpKPgvswNR9qd/lafKljPMxfStedM=";
|
||||
};
|
||||
|
||||
buildFlags = [
|
||||
"all"
|
||||
"opt"
|
||||
];
|
||||
|
||||
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/";
|
||||
|
||||
Reference in New Issue
Block a user