@@ -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;
@@ -82,6 +84,7 @@ in stdenv.mkDerivation ({
8284 ++ optional javacSupport "--with-javac"
8385 ++ optional odbcSupport "--with-odbc=${unixODBC}"
8486 ++ optional wxSupport "--enable-wx"
87+ ++ optional withSystemd "--enable-systemd"
8588 ++ optional stdenv.isDarwin "--enable-darwin-64bit";
8689
8790 # install-docs will generate and install manpages and html docs