2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl, perl, gnum4, ncurses, openssl }:
|
2010-07-05 13:43:59 +01:00
|
|
|
|
|
|
|
let version = "R13B"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "erlang-" + version;
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2010-07-05 13:43:59 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.erlang.org/download/otp_src_" + version + ".tar.gz";
|
|
|
|
sha256 = "112889v9axhrk9x9swcgql5kpj19p14504m06h4n7b99irzxf4rg";
|
|
|
|
};
|
2010-07-28 12:55:54 +01:00
|
|
|
|
|
|
|
buildInputs = [ perl gnum4 ncurses openssl ];
|
|
|
|
|
2010-07-05 13:43:59 +01:00
|
|
|
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2010-07-05 13:43:59 +01:00
|
|
|
preConfigure = ''
|
|
|
|
export HOME=$PWD/../
|
|
|
|
sed -e s@/bin/pwd@pwd@g -i otp_build
|
|
|
|
'';
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2010-07-05 13:43:59 +01:00
|
|
|
configureFlags = "--with-ssl=${openssl}";
|
|
|
|
}
|