mold: Unbreak on aarch64-linux

The default stdenv C++ compiler / library on this platform is too old to
support mold's C++20 code base.
This commit is contained in:
Claudio Bley 2022-11-05 00:56:56 +01:00
parent 0906855159
commit efa86fc3b0
2 changed files with 4 additions and 3 deletions

View File

@ -48,7 +48,5 @@ stdenv.mkDerivation rec {
license = licenses.agpl3Plus;
maintainers = with maintainers; [ azahi nitsky ];
platforms = platforms.unix;
# https://github.com/NixOS/nixpkgs/pull/189712#issuecomment-1237791234
broken = (stdenv.isLinux && stdenv.isAarch64);
};
}

View File

@ -16984,7 +16984,10 @@ with pkgs;
modd = callPackage ../development/tools/modd { };
mold = callPackage ../development/tools/mold {
inherit (llvmPackages) stdenv;
# C++20 is required, aarch64-linux has gcc 9 by default
stdenv = if stdenv.isLinux && stdenv.isAarch64
then llvmPackages_12.libcxxStdenv
else llvmPackages.stdenv;
};
msgpack-tools = callPackage ../development/tools/msgpack-tools { };