Merge pull request #3599 from RumataEstor/erlang-odbc
Support odbc in erlang R16 and R17
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
{ stdenv, fetchurl, perl, gnum4, ncurses, openssl
|
||||
, gnused, gawk, makeWrapper
|
||||
, odbcSupport ? false, unixODBC ? null
|
||||
, wxSupport ? false, mesa ? null, wxGTK ? null, xlibs ? null }:
|
||||
|
||||
assert wxSupport -> mesa != null && wxGTK != null && xlibs != null;
|
||||
assert odbcSupport -> unixODBC != null;
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "erlang-" + version;
|
||||
name = "erlang-" + version + "${optionalString odbcSupport "-odbc"}";
|
||||
version = "16B03-1";
|
||||
|
||||
src = fetchurl {
|
||||
@@ -17,7 +19,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs =
|
||||
[ perl gnum4 ncurses openssl makeWrapper
|
||||
] ++ optional wxSupport [ mesa wxGTK xlibs.libX11 ];
|
||||
] ++ optional wxSupport [ mesa wxGTK xlibs.libX11 ]
|
||||
++ optional odbcSupport [ unixODBC ];
|
||||
|
||||
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
|
||||
|
||||
@@ -26,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
sed -e s@/bin/pwd@pwd@g -i otp_build
|
||||
'';
|
||||
|
||||
configureFlags= "--with-ssl=${openssl} ${optionalString stdenv.isDarwin "--enable-darwin-64bit"}";
|
||||
configureFlags= "--with-ssl=${openssl} ${optionalString odbcSupport "--with-odbc=${unixODBC}"} ${optionalString stdenv.isDarwin "--enable-darwin-64bit"}";
|
||||
|
||||
postInstall = let
|
||||
manpages = fetchurl {
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
{ stdenv, fetchurl, perl, gnum4, ncurses, openssl
|
||||
, gnused, gawk, makeWrapper
|
||||
, odbcSupport ? false, unixODBC ? null
|
||||
, wxSupport ? false, mesa ? null, wxGTK ? null, xlibs ? null }:
|
||||
|
||||
assert wxSupport -> mesa != null && wxGTK != null && xlibs != null;
|
||||
assert odbcSupport -> unixODBC != null;
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "erlang-" + version;
|
||||
name = "erlang-" + version + "${optionalString odbcSupport "-odbc"}";
|
||||
version = "17.1";
|
||||
|
||||
src = fetchurl {
|
||||
@@ -17,7 +19,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs =
|
||||
[ perl gnum4 ncurses openssl makeWrapper
|
||||
] ++ optional wxSupport [ mesa wxGTK xlibs.libX11 ];
|
||||
] ++ optional wxSupport [ mesa wxGTK xlibs.libX11 ]
|
||||
++ optional odbcSupport [ unixODBC ];
|
||||
|
||||
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
|
||||
|
||||
@@ -26,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
sed -e s@/bin/pwd@pwd@g -i otp_build
|
||||
'';
|
||||
|
||||
configureFlags= "--with-ssl=${openssl} ${optionalString stdenv.isDarwin "--enable-darwin-64bit"}";
|
||||
configureFlags= "--with-ssl=${openssl} ${optionalString odbcSupport "--with-odbc=${unixODBC}"} ${optionalString stdenv.isDarwin "--enable-darwin-64bit"}";
|
||||
|
||||
postInstall = let
|
||||
manpages = fetchurl {
|
||||
|
||||
Reference in New Issue
Block a user