pgocaml: 2.2 -> 2.3
Changes the build system from mkDerivation to buildOcaml
This commit is contained in:
parent
51e0173c28
commit
a52c1b4840
|
@ -1,14 +1,17 @@
|
||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, camlp4, calendar, csv, ocaml_pcre }:
|
{ stdenv, fetchurl, buildOcaml, calendar, csv, re }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
buildOcaml {
|
||||||
name = "ocaml-pgocaml-2.2";
|
name = "pgocaml";
|
||||||
|
version = "2.3";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://forge.ocamlcore.org/frs/download.php/1506/pgocaml-2.2.tgz;
|
url = https://github.com/darioteixeira/pgocaml/archive/v2.3.tar.gz;
|
||||||
sha256 = "0x0dhlz2rqxpwfdqi384f9fn0ng2irifadmxfm2b4gcz7y1cl9rh";
|
sha256 = "18lymxlvcf4nwxawkidq3pilsp5rhl0l8ifq6pjk3ssjlx9w53pg";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
|
buildInputs = [ ];
|
||||||
propagatedBuildInputs = [ calendar csv ocaml_pcre ];
|
propagatedBuildInputs = [ calendar csv re ];
|
||||||
|
|
||||||
|
configureFlags = [ "--enable-p4" ];
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
|
@ -16,7 +19,6 @@ stdenv.mkDerivation {
|
||||||
description = "An interface to PostgreSQL databases for OCaml applications";
|
description = "An interface to PostgreSQL databases for OCaml applications";
|
||||||
homepage = http://pgocaml.forge.ocamlcore.org/;
|
homepage = http://pgocaml.forge.ocamlcore.org/;
|
||||||
license = licenses.lgpl2;
|
license = licenses.lgpl2;
|
||||||
platforms = ocaml.meta.platforms or [];
|
|
||||||
maintainers = with maintainers; [ vbgl ];
|
maintainers = with maintainers; [ vbgl ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue