diff options
author | Alexey Lebedeff <alexey.lebedeff@booking.com> | 2018-01-25 20:17:34 +0100 |
---|---|---|
committer | Alexey Lebedeff <binarin@binarin.ru> | 2018-07-19 17:32:19 +0200 |
commit | 16cccc251372c63f6dfdd5dd5a0f9046d9fecd8e (patch) | |
tree | c14ef5aceb77ae3a4c0c8d59dcd6330a786282e0 /pkgs | |
parent | 0467e8d1f60096e11bda77065c5f99fedd5a27f6 (diff) | |
download | nixlib-16cccc251372c63f6dfdd5dd5a0f9046d9fecd8e.tar nixlib-16cccc251372c63f6dfdd5dd5a0f9046d9fecd8e.tar.gz nixlib-16cccc251372c63f6dfdd5dd5a0f9046d9fecd8e.tar.bz2 nixlib-16cccc251372c63f6dfdd5dd5a0f9046d9fecd8e.tar.lz nixlib-16cccc251372c63f6dfdd5dd5a0f9046d9fecd8e.tar.xz nixlib-16cccc251372c63f6dfdd5dd5a0f9046d9fecd8e.tar.zst nixlib-16cccc251372c63f6dfdd5dd5a0f9046d9fecd8e.zip |
erlang: Build with systemd support
That way 'epmd' can be started by systemd using socket activation. This is important to have when there is more than one Erlang system used on the same host. Support for this exists since 17.0: https://github.com/erlang/otp/commit/b7c95eabf6017ddb352fb8ce2b3749af108ebf29 Configure flag was added in 17.1: https://github.com/erlang/otp/commit/12cd5e5b394623fab9907622ad99163c5b9350e1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/interpreters/erlang/generic-builder.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/erlang/generic-builder.nix b/pkgs/development/interpreters/erlang/generic-builder.nix index 6ea3ac73a4b1..b4f70899693c 100644 --- a/pkgs/development/interpreters/erlang/generic-builder.nix +++ b/pkgs/development/interpreters/erlang/generic-builder.nix @@ -3,6 +3,7 @@ , openjdk ? null # javacSupport , unixODBC ? null # odbcSupport , libGLU_combined ? null, wxGTK ? null, wxmac ? null, xorg ? null # wxSupport +, withSystemd ? stdenv.isLinux, systemd # systemd support in epmd }: { baseName ? "erlang" @@ -53,6 +54,7 @@ in stdenv.mkDerivation ({ ++ optionals wxSupport wxPackages2 ++ optionals odbcSupport odbcPackages ++ optionals javacSupport javacPackages + ++ optional withSystemd systemd ++ optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [ Carbon Cocoa ]); debugInfo = enableDebugInfo; @@ -82,6 +84,7 @@ in stdenv.mkDerivation ({ ++ optional javacSupport "--with-javac" ++ optional odbcSupport "--with-odbc=${unixODBC}" ++ optional wxSupport "--enable-wx" + ++ optional withSystemd "--enable-systemd" ++ optional stdenv.isDarwin "--enable-darwin-64bit"; # install-docs will generate and install manpages and html docs |