ErlangR24: init at 24.0

Update configure options

The configure script now needs to be told about the headers and the
actual lib files separately.

Remove extra whitespace
This commit is contained in:
Justin Wood
2021-05-12 09:27:31 -04:00
committed by Jonathan Ringer
parent 39167dd014
commit 7500267ed9
4 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
{ mkDerivation }:
# How to obtain `sha256`:
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-${version}.tar.gz
mkDerivation {
version = "24.0";
sha256 = "0p4p920ncsvls9q3czdc7wz2p7m15bi3nr4306hqddnxz1kxcm4w";
}

View File

@@ -76,7 +76,8 @@ in stdenv.mkDerivation ({
./otp_build autoconf
'';
configureFlags = [ "--with-ssl=${lib.getDev opensslPackage}" ]
configureFlags = [ "--with-ssl=${lib.getOutput "out" opensslPackage}" ]
++ [ "--with-ssl-incl=${lib.getDev opensslPackage}" ] # This flag was introduced in R24
++ optional enableThreads "--enable-threads"
++ optional enableSmpSupport "--enable-smp-support"
++ optional enableKernelPoll "--enable-kernel-poll"