* 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 16:40:04 +01:00
|
|
|
{stdenv, fetchurl, zlib, ocaml}:
|
|
|
|
|
|
|
|
let
|
|
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
|
|
version = "1.3";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cryptokit-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://forge.ocamlcore.org/frs/download.php/326/" +
|
|
|
|
"cryptokit-${version}.tar.gz";
|
|
|
|
sha256 = "0kqrlxkpzrj2qpniy6mhn7gx3n29s86vk4q0im2hqpxi9knkkwwy";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [zlib ocaml];
|
|
|
|
|
|
|
|
patches = [ ./makefile.patch ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export INSTALLDIR="$out/lib/ocaml/${ocaml_version}/site-lib/cryptokit"
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--subst-var-by ZLIB_LIBDIR "${zlib}/lib" \
|
|
|
|
--subst-var-by ZLIB_INCLUDE "${zlib}/include" \
|
|
|
|
--subst-var INSTALLDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildFlags = "all allopt";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
preInstall = "ensureDir $INSTALLDIR";
|
|
|
|
|
|
|
|
postInstall = "cp -a ${./META} $INSTALLDIR/META";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://pauillac.inria.fr/~xleroy/software.html";
|
|
|
|
description = "A library of cryptographic primitives for OCaml";
|
* 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 15:50:45 +01: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 16:40:04 +01:00
|
|
|
};
|
|
|
|
}
|