@@ -3,6 +3,7 @@
33, openjdk ? null # javacSupport
44, unixODBC ? null # odbcSupport
55, libGLU_combined ? null, wxGTK ? null, wxmac ? null, xorg ? null # wxSupport
6+, withSystemd ? stdenv.isLinux, systemd # systemd support in epmd
67}:
78
89{ baseName ? "erlang"
@@ -53,6 +54,7 @@ in stdenv.mkDerivation ({
5354 ++ optionals wxSupport wxPackages2
5455 ++ optionals odbcSupport odbcPackages
5556 ++ optionals javacSupport javacPackages
57+ ++ optional withSystemd systemd
5658 ++ optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [ Carbon Cocoa ]);
5759
5860 debugInfo = enableDebugInfo;
@@ -84,6 +86,7 @@ in stdenv.mkDerivation ({
8486 ++ optional javacSupport "--with-javac"
8587 ++ optional odbcSupport "--with-odbc=${unixODBC}"
8688 ++ optional wxSupport "--enable-wx"
89+ ++ optional withSystemd "--enable-systemd"
8790 ++ optional stdenv.isDarwin "--enable-darwin-64bit";
8891
8992 # install-docs will generate and install manpages and html docs