Added additional ocaml modules which are needed for coccinelle. svn path=/nixpkgs/trunk/; revision=31579wip/yesman
parent
3b833cc93b
commit
c87285c255
@ -0,0 +1,23 @@ |
||||
{stdenv, fetchurl, ocaml, findlib}: |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "ocaml-extlib-1.5.2"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://ocaml-extlib.googlecode.com/files/extlib-1.5.2.tar.gz"; |
||||
sha256 = "ca6d69adeba4242ce41c02a23746ba1e464c0bbec66e2d16b02c3c6e85dc10aa"; |
||||
}; |
||||
|
||||
buildInputs = [ocaml findlib]; |
||||
|
||||
createFindlibDestdir = true; |
||||
|
||||
configurePhase = "true"; |
||||
|
||||
meta = { |
||||
homepage = "http://code.google.com/p/ocaml-extlib/"; |
||||
description = "Enhancements to the OCaml Standard Library modules"; |
||||
license = "LGPL"; |
||||
platforms = ocaml.meta.platforms; |
||||
}; |
||||
} |
@ -0,0 +1,20 @@ |
||||
{stdenv, fetchurl}: |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "ocaml-make-6.33.0"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://www.ocaml.info/ocaml_sources/ocaml-make-6.33.0.tar.gz"; |
||||
sha256 = "3054303ba04e4bbbe038e08310fabc3e5a0e3899bbba33d9ac5ed7a1b9d1e05a"; |
||||
}; |
||||
|
||||
phases = [ "unpackPhase" "installPhase" ]; |
||||
|
||||
installPhase = "cp OCamlMakefile $out"; |
||||
|
||||
meta = { |
||||
homepage = "http://www.ocaml.info/home/ocaml_sources.html"; |
||||
description = "Generic OCaml Makefile for GNU Make"; |
||||
license = "LGPL"; |
||||
}; |
||||
} |
@ -0,0 +1,51 @@ |
||||
{stdenv, fetchurl, ocaml, findlib, python, ocaml_make}: |
||||
|
||||
# The actual version of pycaml is unclear, as it is the original |
||||
# 0.82 version with some patches applied in order to use it for |
||||
# the kompostilo type setter (see README). Apparently, some of |
||||
# the patches provide Python 3.1 support. |
||||
# This version also differs from the Debian version, which |
||||
# is also a heavily patched 0.82. |
||||
# Therefore, we may at some point try to find out what is |
||||
# actually the "real" version (if the library is still alive). |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "pycaml-0.82"; |
||||
|
||||
src = fetchurl { |
||||
name = "pycaml.tar.gz"; |
||||
url = "http://github.com/chemoelectric/pycaml/tarball/master"; |
||||
sha256 = "ff6d863c42b4ef798f50ff5eff77b47b77b5c0d28b6f65364e8a436a216dc591"; |
||||
}; |
||||
|
||||
buildInputs = [ocaml findlib python]; |
||||
|
||||
createFindlibDestdir = true; |
||||
|
||||
phases = [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" ]; |
||||
|
||||
# fix some paths to the appropriate store paths. |
||||
patchPhase = '' |
||||
sed -i "Makefile" -e's|/usr/include/OCamlMakefile|${ocaml_make}|g' |
||||
sed -i "Makefile" -e's|/usr|${python}|g' |
||||
''; |
||||
|
||||
buildPhase = '' |
||||
make -f Makefile -j1 PYVER=`python -c 'import sys; print("{0}.{1}".format(sys.version_info.major, sys.version_info.minor));'` |
||||
''; |
||||
|
||||
# the Makefile is not shipped with an install target, hence we do it ourselves. |
||||
installPhase = '' |
||||
ocamlfind install pycaml \ |
||||
dllpycaml_stubs.so* libpycaml_stubs.a pycaml.a pycaml.cma \ |
||||
pycaml.cmi pycaml.cmo pycaml.cmx pycaml.cmxa pycaml.ml pycaml.mli \ |
||||
pycaml.o pycaml_stubs.c pycaml_stubs.h pycaml_stubs.o META |
||||
''; |
||||
|
||||
meta = { |
||||
homepage = "http://github.com/chemoelectric/pycaml"; |
||||
description = "Bindings for python and ocaml"; |
||||
license = "LGPL"; |
||||
platforms = ocaml.meta.platforms; |
||||
}; |
||||
} |
@ -0,0 +1,26 @@ |
||||
{stdenv, fetchurl, ocaml, findlib, ocaml_typeconv}: |
||||
|
||||
# note: only works with ocaml>3.12 |
||||
# use version 5.2.0 if you still want an 3.11 version... |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "ocaml-sexplib-7.0.4"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://forge.ocamlcore.org/frs/download.php/699/sexplib-7.0.4.tar.gz"; |
||||
sha256 = "83c6c771f423d91bebc4f57202066358adf3775fb000dd780079f51436045a43"; |
||||
}; |
||||
|
||||
buildInputs = [ocaml findlib ocaml_typeconv]; |
||||
|
||||
createFindlibDestdir = true; |
||||
|
||||
configurePhase = "true"; |
||||
|
||||
meta = { |
||||
homepage = "http://forge.ocamlcore.org/projects/sexplib/"; |
||||
description = "Library for serializing OCaml values to and from S-expressions."; |
||||
license = "LGPL"; |
||||
platforms = ocaml.meta.platforms; |
||||
}; |
||||
} |
@ -0,0 +1,25 @@ |
||||
{stdenv, fetchurl, ocaml, findlib}: |
||||
|
||||
# note: works only with ocaml >3.12 |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "ocaml-typeconv-3.0.4"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://forge.ocamlcore.org/frs/download.php/697/ocaml-type-conv-3.0.4.tar.gz"; |
||||
sha256 = "63b6f2872d29fb4c0b1448343bb5ec0649365126756128049d45a81238b59f12"; |
||||
}; |
||||
|
||||
buildInputs = [ocaml findlib ]; |
||||
|
||||
createFindlibDestdir = true; |
||||
|
||||
configurePhase = "true"; |
||||
|
||||
meta = { |
||||
homepage = "http://forge.ocamlcore.org/projects/type-conv/"; |
||||
description = "Support library for OCaml preprocessor type conversions"; |
||||
license = "LGPL"; |
||||
platforms = ocaml.meta.platforms; |
||||
}; |
||||
} |
Loading…
Reference in new issue