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;
|
|
|
|
version = "1.04";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "camlzip-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://forge.ocamlcore.org/frs/download.php/328/" +
|
|
|
|
"camlzip-${version}.tar.gz";
|
|
|
|
sha256 = "1zpchmp199x7f4mzmapvfywgy7f6wy9yynd9nd8yh8l78s5gixbn";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|