2010-12-12 17:45:57 +00:00
|
|
|
{stdenv, fetchurl, zlib, ocaml, findlib}:
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
2013-06-04 18:29:02 +00:00
|
|
|
version = "1.05";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "camlzip-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-06-04 18:29:02 +00:00
|
|
|
url = "http://forge.ocamlcore.org/frs/download.php/1037/" +
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
"camlzip-${version}.tar.gz";
|
2013-06-04 18:29:02 +00:00
|
|
|
sha256 = "930b70c736ab5a7ed1b05220102310a0a2241564786657abe418e834a538d06b";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
};
|
|
|
|
|
2010-12-12 17:45:57 +00:00
|
|
|
buildInputs = [zlib ocaml findlib];
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
|
|
|
|
patches = [ ./makefile.patch ];
|
|
|
|
|
2010-12-21 09:37:35 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2010-12-12 17:45:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
substitute ${./META} META --subst-var-by VERSION "${version}"
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--subst-var-by ZLIB_LIBDIR "${zlib}/lib" \
|
2010-12-12 17:45:57 +00:00
|
|
|
--subst-var-by ZLIB_INCLUDE "${zlib}/include"
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildFlags = "all allopt";
|
|
|
|
|
2010-12-12 17:45:57 +00:00
|
|
|
installTargets = "install";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://cristal.inria.fr/~xleroy/software.html#camlzip";
|
|
|
|
description = "A library for handling ZIP and GZIP files in OCaml";
|
|
|
|
longDescription = ''
|
|
|
|
This Objective Caml library provides easy access to compressed files in
|
|
|
|
ZIP and GZIP format, as well as to Java JAR files. It provides functions
|
|
|
|
for reading from and writing to compressed files in these formats.
|
|
|
|
'';
|
|
|
|
license = "LGPL+linking exceptions";
|
* Enable hydra build for ocaml-batteries, camlzip, camomile, ocaml-cryptgps, cryptokit, ocaml-lwt, menhir, ounit, ocaml-pcre, ocaml-react, ocaml-ssl
svn path=/nixpkgs/trunk/; revision=25064
2010-12-11 14:50:45 +00:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.z77z
|
|
|
|
];
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
};
|
|
|
|
}
|