2019-06-18 01:56:32 -07:00
|
|
|
{ mkDerivation }:
|
|
|
|
|
2019-11-15 04:35:55 -08:00
|
|
|
# How to obtain `sha256`:
|
|
|
|
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-${version}.tar.gz
|
2019-08-13 14:52:01 -07:00
|
|
|
mkDerivation {
|
2020-03-16 22:54:06 -07:00
|
|
|
version = "22.3";
|
|
|
|
sha256 = "0srbyncgnr1kp0rrviq14ia3h795b3gk0iws5ishv6rphcq1rs27";
|
2019-06-18 01:56:32 -07:00
|
|
|
|
|
|
|
prePatch = ''
|
2019-08-14 15:54:56 -07:00
|
|
|
substituteInPlace make/configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
|
2019-06-18 01:56:32 -07:00
|
|
|
substituteInPlace erts/configure.in --replace '-Wl,-no_weak_imports' ""
|
|
|
|
'';
|
|
|
|
}
|