2020-07-18 16:06:22 +00:00
|
|
|
{ mkDerivation }:
|
|
|
|
|
|
|
|
# How to obtain `sha256`:
|
|
|
|
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-${version}.tar.gz
|
|
|
|
mkDerivation {
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "23.0.3";
|
|
|
|
sha256 = "133aw1ffkxdf38na3smmvn5qwwlalh4r4a51793h1wkhdzkyl6mv";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace make/configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
|
|
|
|
substituteInPlace erts/configure.in --replace '-Wl,-no_weak_imports' ""
|
|
|
|
'';
|
|
|
|
}
|