mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
14 lines
453 B
Nix
14 lines
453 B
Nix
{ mkDerivation }:
|
|
|
|
# How to obtain `sha256`:
|
|
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-${version}.tar.gz
|
|
mkDerivation {
|
|
version = "22.3";
|
|
sha256 = "0srbyncgnr1kp0rrviq14ia3h795b3gk0iws5ishv6rphcq1rs27";
|
|
|
|
prePatch = ''
|
|
substituteInPlace make/configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
|
|
substituteInPlace erts/configure.in --replace '-Wl,-no_weak_imports' ""
|
|
'';
|
|
}
|