2019-06-18 10:56:32 +02:00
|
|
|
{ mkDerivation }:
|
|
|
|
|
2019-11-15 13:35:55 +01:00
|
|
|
# How to obtain `sha256`:
|
|
|
|
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-${version}.tar.gz
|
2019-08-13 23:52:01 +02:00
|
|
|
mkDerivation {
|
2019-11-15 13:35:55 +01:00
|
|
|
version = "22.1.7";
|
|
|
|
sha256 = "18aqy2s8nqd82v4lzzxknrwjva8mv1y2hvai9cakz5nkyd3vwq62";
|
2019-06-18 10:56:32 +02:00
|
|
|
|
|
|
|
prePatch = ''
|
2019-08-15 00:54:56 +02:00
|
|
|
substituteInPlace make/configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
|
2019-06-18 10:56:32 +02:00
|
|
|
substituteInPlace erts/configure.in --replace '-Wl,-no_weak_imports' ""
|
|
|
|
'';
|
|
|
|
}
|