summary refs log tree commit diff
path: root/pkgs/development/interpreters/erlang/R22.nix
blob: 88fe21453a82aac224b9fdbb8c76fa9febeaf7e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ mkDerivation }:

# How to obtain `sha256`:
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-${version}.tar.gz
mkDerivation {
  version = "22.1.7";
  sha256 = "18aqy2s8nqd82v4lzzxknrwjva8mv1y2hvai9cakz5nkyd3vwq62";

  prePatch = ''
    substituteInPlace make/configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
    substituteInPlace erts/configure.in --replace '-Wl,-no_weak_imports' ""
  '';
}