2015-09-15 02:13:22 -07:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, ncurses }:
|
2007-11-14 14:39:58 -08:00
|
|
|
|
2008-06-04 07:03:20 -07:00
|
|
|
stdenv.mkDerivation (rec {
|
2014-11-05 16:44:33 -08:00
|
|
|
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "ocaml";
|
2016-09-19 10:00:42 -07:00
|
|
|
version = "3.10.0";
|
2014-11-05 16:44:33 -08:00
|
|
|
|
2008-06-04 07:03:20 -07:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://caml.inria.fr/pub/distrib/ocaml-3.10/${pname}-${version}.tar.bz2";
|
2008-06-04 07:03:20 -07:00
|
|
|
sha256 = "1ihmx1civ78s7k2hfc05z1s9vbyx2qw7fg8lnbxnfd6zxkk8878d";
|
|
|
|
};
|
|
|
|
|
|
|
|
prefixKey = "-prefix ";
|
2015-09-15 02:13:22 -07:00
|
|
|
configureFlags = ["-no-tk" "-x11lib" xlibsWrapper];
|
2019-10-27 06:03:25 -07:00
|
|
|
buildFlags = [ "world" "bootstrap" "world.opt" ];
|
2015-09-15 02:13:22 -07:00
|
|
|
buildInputs = [xlibsWrapper ncurses];
|
2014-11-05 16:44:33 -08:00
|
|
|
installTargets = "install installopt";
|
2008-06-04 07:03:20 -07:00
|
|
|
patchPhase = ''
|
|
|
|
CAT=$(type -tp cat)
|
|
|
|
sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
|
|
|
|
'';
|
2010-09-03 06:48:35 -07:00
|
|
|
postBuild = ''
|
2012-01-18 12:16:00 -08:00
|
|
|
mkdir -p $out/include
|
2010-09-03 06:48:35 -07:00
|
|
|
ln -sv $out/lib/ocaml/caml $out/include/caml
|
|
|
|
'';
|
2008-06-04 07:03:20 -07:00
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://caml.inria.fr/ocaml";
|
2014-11-05 16:44:33 -08:00
|
|
|
license = with stdenv.lib.licenses; [ qpl lgpl2 ];
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "Most popular variant of the Caml language";
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-06-04 07:03:20 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
})
|