2020-06-10 19:02:50 +01:00
|
|
|
{ mkDerivation }:
|
|
|
|
|
|
|
|
# How to obtain `sha256`:
|
|
|
|
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-${version}.tar.gz
|
|
|
|
mkDerivation {
|
2020-12-07 12:35:16 +00:00
|
|
|
version = "23.1.4";
|
|
|
|
sha256 = "16ssxmrgjgvzg06aa1l4wz9rrdjfy39k22amgabxwb5if1g8bg8z";
|
2020-06-10 19:02:50 +01:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace make/configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
|
|
|
|
substituteInPlace erts/configure.in --replace '-Wl,-no_weak_imports' ""
|
|
|
|
'';
|
|
|
|
}
|