mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
3b833cc93b
The previous version did not compile with ocaml>=3.12, and this version is also backwards compatible with 3.11. svn path=/nixpkgs/trunk/; revision=31578
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{stdenv, fetchurl, ocaml, findlib, camomile, ounit}:
|
|
|
|
let
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml-batteries-1.4.1";
|
|
|
|
src = fetchurl {
|
|
url = http://forge.ocamlcore.org/frs/download.php/684/batteries-1.4.1.tar.gz;
|
|
sha256 = "bdca7deba290d83c66c0a5001da52b2d7f2af58b7b7e7d9303d4363aaafe9c30";
|
|
};
|
|
|
|
buildInputs = [ocaml findlib camomile ounit];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace Makefile --replace '/bin/echo -n' echo
|
|
'';
|
|
|
|
configurePhase = "true"; # Skip configure
|
|
|
|
preInstall = ''
|
|
ensureDir "$out/lib/ocaml/${ocaml_version}/site-lib"
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
meta = {
|
|
homepage = http://batteries.forge.ocamlcore.org/;
|
|
description = "OCaml Batteries Included";
|
|
longDescription = ''
|
|
A community-driven effort to standardize on an consistent, documented,
|
|
and comprehensive development platform for the OCaml programming
|
|
language.
|
|
'';
|
|
license = "LGPL";
|
|
platforms = ocaml.meta.platforms;
|
|
maintainers = [
|
|
stdenv.lib.maintainers.z77z
|
|
];
|
|
};
|
|
}
|