Adding optional wx (GUI) support for Erlang, which enables the graphical debugger although pman (the process manager) fails to start.

svn path=/nixpkgs/trunk/; revision=34372
This commit is contained in:
Cillian de Roiste 2012-06-06 19:05:06 +00:00
parent e9a003e3a2
commit 4b2c3d52de

View File

@ -1,4 +1,7 @@
{ stdenv, fetchurl, perl, gnum4, ncurses, openssl }:
{ stdenv, fetchurl, perl, gnum4, ncurses, openssl
, wxSupport ? false, mesa ? null, wxGTK ? null, xlibs ? null }:
assert wxSupport -> mesa != null && wxGTK != null && xlibs != null;
let version = "R15B01"; in
@ -10,7 +13,9 @@ stdenv.mkDerivation {
sha256 = "1pmb3hk51p6dwsspxx40qs7gjfyhxjjc3290qk6w1wwa6bkpskzr";
};
buildInputs = [ perl gnum4 ncurses openssl ];
buildInputs =
[ perl gnum4 ncurses openssl
] ++ stdenv.lib.optional wxSupport [ mesa wxGTK xlibs.libX11 ];
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';