erlang_27: 27.0.1 -> 27.0

This commit is contained in:
Barry Moore
2024-07-16 07:52:45 -04:00
committed by Barry Moore
parent 24a0f05430
commit c770420c90
2 changed files with 13 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ mkDerivation }:
mkDerivation {
version = "27.0.1";
sha256 = "sha256-Lp6J9eq6RXDi0RRjeVO/CIa4h/m7/fwOp/y0u0sTdFQ=";
version = "27.0";
sha256 = "sha256-YZWBLcpkm8B4sjoQO7I9ywXcmxXL+Dvq/JYsLsr7TO0=";
}

View File

@@ -122,10 +122,20 @@ stdenv.mkDerivation ({
'';
# For OTP 27+ we need ex_doc to build the documentation
# When exdocSupport is enabled, grab the raw ex_doc executable from the exdoc
# derivation. Next, patch the first line to use the escript that will be
# built during the build phase of this derivation. Finally, building the
# documentation requires the erlang-logo.png asset.
preConfigure = ''
./otp_build autoconf
'' + optionalString exdocSupport ''
export EX_DOC=${exdoc}/bin/.ex_doc-wrapped
mkdir -p $out/bin
cp ${exdoc}/bin/.ex_doc-wrapped $out/bin/ex_doc
sed -i "1 s:^.*$:#!$out/bin/escript:" $out/bin/ex_doc
export EX_DOC=$out/bin/ex_doc
mkdir -p $out/lib/erlang/system/doc/assets
cp $src/system/doc/assets/erlang-logo.png $out/lib/erlang/system/doc/assets
'';
configureFlags = [ "--with-ssl=${lib.getOutput "out" opensslPackage}" ]