Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / compilers / ocaml / metaocaml-3.09.nix
blobe13f3006be5792648bbb3ebf17c3e785d1c6ee01
1 { lib, stdenv, fetchurl, xlibsWrapper, ncurses }:
3 stdenv.mkDerivation ({
5   pname = "metaocaml";
6   version = "3.09-alpha-30";
8   src = fetchurl {
9     url = "http://www.metaocaml.org/dist/old/MetaOCaml_309_alpha_030.tar.gz";
10     sha256 = "0migbn0zwfb7yb24dy7qfqi19sv3drqcv4369xi7xzpds2cs35fd";
11   };
13   prefixKey = "-prefix ";
14   configureFlags = ["-no-tk" "-x11lib" xlibsWrapper];
15   buildFlags = [ "world" "bootstrap" "world.opt" ];
16   buildInputs = [xlibsWrapper ncurses];
17   installTargets = "install installopt";
18   patchPhase = ''
19     CAT=$(type -tp cat)
20     sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
21   '';
22   postBuild = ''
23     mkdir -p $out/include
24     ln -sv $out/lib/ocaml/caml $out/include/caml
25   '';
27   meta = {
28     homepage = "http://www.metaocaml.org/";
29     license = with lib.licenses; [ qpl lgpl2 ];
30     description = "A compiled, type-safe, multi-stage programming language";
31     broken = true;
32   };