mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #114589 from bobrik/ivan/erlang-aarch64
This commit is contained in:
commit
25761501f9
4 changed files with 8 additions and 28 deletions
|
@ -1,10 +1,6 @@
|
|||
{ mkDerivation }:
|
||||
|
||||
mkDerivation {
|
||||
version = "21.3.8.3";
|
||||
sha256 = "1szybirrcpqsl2nmlmpbkxjqnm6i7l7bma87m5cpwi0kpvlxwmcw";
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
|
||||
'';
|
||||
version = "21.3.8.21";
|
||||
sha256 = "sha256-zQCs2hOA66jxAaxl/B42EKCejAktIav2rpVQCNyKCh4=";
|
||||
}
|
||||
|
|
|
@ -3,11 +3,6 @@
|
|||
# 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' ""
|
||||
'';
|
||||
version = "22.3.4.16";
|
||||
sha256 = "sha256-V0RwEPfjnHtEzShNh6Q49yGC5fbt2mNR4xy6f6iWvck=";
|
||||
}
|
||||
|
|
|
@ -3,11 +3,6 @@
|
|||
# How to obtain `sha256`:
|
||||
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-${version}.tar.gz
|
||||
mkDerivation {
|
||||
version = "23.1.4";
|
||||
sha256 = "16ssxmrgjgvzg06aa1l4wz9rrdjfy39k22amgabxwb5if1g8bg8z";
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace make/configure.in --replace '`sw_vers -productVersion`' "''${MACOSX_DEPLOYMENT_TARGET:-10.12}"
|
||||
substituteInPlace erts/configure.in --replace '-Wl,-no_weak_imports' ""
|
||||
'';
|
||||
version = "23.2.6";
|
||||
sha256 = "sha256-G930sNbr8h5ryI/IE+J6OKhR5ij68ZhGo1YIEjSOwGU=";
|
||||
}
|
||||
|
|
|
@ -57,20 +57,13 @@ in stdenv.mkDerivation ({
|
|||
++ optionals odbcSupport odbcPackages
|
||||
++ optionals javacSupport javacPackages
|
||||
++ optional withSystemd systemd
|
||||
++ optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [ Carbon Cocoa ]);
|
||||
++ optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [ AGL Carbon Cocoa WebKit ]);
|
||||
|
||||
debugInfo = enableDebugInfo;
|
||||
|
||||
# On some machines, parallel build reliably crashes on `GEN asn1ct_eval_ext.erl` step
|
||||
enableParallelBuilding = parallelBuild;
|
||||
|
||||
# Clang 4 (rightfully) thinks signed comparisons of pointers with NULL are nonsense
|
||||
prePatch = ''
|
||||
substituteInPlace lib/wx/c_src/wxe_impl.cpp --replace 'temp > NULL' 'temp != NULL'
|
||||
|
||||
${prePatch}
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs make
|
||||
|
||||
|
@ -132,6 +125,7 @@ in stdenv.mkDerivation ({
|
|||
// optionalAttrs (preUnpack != "") { inherit preUnpack; }
|
||||
// optionalAttrs (postUnpack != "") { inherit postUnpack; }
|
||||
// optionalAttrs (patches != []) { inherit patches; }
|
||||
// optionalAttrs (prePatch != "") { inherit prePatch; }
|
||||
// optionalAttrs (patchPhase != "") { inherit patchPhase; }
|
||||
// optionalAttrs (configurePhase != "") { inherit configurePhase; }
|
||||
// optionalAttrs (preConfigure != "") { inherit preConfigure; }
|
||||
|
|
Loading…
Reference in a new issue