git.iko.soy/typeable/nixpkgs
on master help sign in
erlang: Fix build error on darwin

Stop hardcoding 10.10 as the platform when building. Instead we'll use $MACOSX_DEPLOYMENT_TARGET so erlang doesn't have to be updated again the next time that's changed.

commit63259057a82fd833879426657dc555b6100ea0f5 authorLily Ballard <lily@sb.org> dateWed 14 Aug 2019, 15:54 (7 years ago) parentf2e6311
4 files changed+4−4
pkgs/development/interpreters/erlang/R19.nix+1−1 pkgs/development/interpreters/erlang/R20.nix+1−1 pkgs/development/interpreters/erlang/R21.nix+1−1 pkgs/development/interpreters/erlang/R22.nix+1−1
pkgs/development/interpreters/erlang/R19.nix+1−1
@@ -14,6 +14,6 @@ mkDerivation rec {
1414 ];
1515
1616 prePatch = ''
17− substituteInPlace configure.in --replace '`sw_vers -productVersion`' '10.10'
17+ substituteInPlace configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
1818 '';
1919}
pkgs/development/interpreters/erlang/R20.nix+1−1
@@ -5,6 +5,6 @@ mkDerivation rec {
55 sha256 = "0v2iiyzss8hiih98wvj0gi2qzdmmhh7bvc9p025wlfm4k7r1109a";
66
77 prePatch = ''
8− substituteInPlace configure.in --replace '`sw_vers -productVersion`' '10.10'
8+ substituteInPlace configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
99 '';
1010}
pkgs/development/interpreters/erlang/R21.nix+1−1
@@ -5,6 +5,6 @@ mkDerivation rec {
55 sha256 = "1szybirrcpqsl2nmlmpbkxjqnm6i7l7bma87m5cpwi0kpvlxwmcw";
66
77 prePatch = ''
8− substituteInPlace configure.in --replace '`sw_vers -productVersion`' '10.10'
8+ substituteInPlace configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
99 '';
1010}
pkgs/development/interpreters/erlang/R22.nix+1−1
@@ -5,7 +5,7 @@ mkDerivation rec {
55 sha256 = "1aqkhd6nwdn4xp5yz02zbymd4x8ij8fjw9ji8kh860n1a513k9ai";
66
77 prePatch = ''
8− substituteInPlace make/configure.in --replace '`sw_vers -productVersion`' '10.10'
8+ substituteInPlace make/configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
99 substituteInPlace erts/configure.in --replace '-Wl,-no_weak_imports' ""
1010 '';
1111}