Merge pull request #128889 from nitsky/mold

This commit is contained in:
Sandro 2021-07-18 00:38:56 +02:00 committed by GitHub
commit 3ef2003b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 0 deletions

View File

@ -7614,6 +7614,12 @@
fingerprint = "B956 C6A4 22AF 86A0 8F77 A8CA DE3B ADFE CD31 A89D";
}];
};
nitsky = {
name = "nitsky";
email = "492793+nitsky@users.noreply.github.com";
github = "nitsky";
githubId = 492793;
};
nkpvk = {
email = "niko.pavlinek@gmail.com";
github = "nkpvk";

View File

@ -0,0 +1,39 @@
{ stdenv
, fetchFromGitHub
, lib
, autoPatchelfHook
, cmake
, tbb
, llvmPackages_latest
, xxHash
, zlib
, openssl
}:
stdenv.mkDerivation rec {
pname = "mold";
version = "0.9.2";
src = fetchFromGitHub {
owner = "rui314";
repo = pname;
rev = "v${version}";
sha256 = "sha256-2LXOPirhjAifKYPgngUJwEdGrKMYsRySr5TL2x2p8J0=";
};
buildInputs = [ tbb zlib openssl ];
nativeBuildInputs = [ autoPatchelfHook cmake xxHash ];
dontUseCmakeConfigure = true;
EXTRA_LDFLAGS = "-fuse-ld=${llvmPackages_latest.lld}/bin/ld.lld";
LTO = 1;
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
description = "A high performance drop-in replacement for existing unix linkers";
homepage = "https://github.com/rui314/mold";
license = lib.licenses.agpl3Plus;
maintainers = with maintainers; [ nitsky ];
broken = stdenv.isAarch64;
};
}

View File

@ -13906,6 +13906,10 @@ in
modd = callPackage ../development/tools/modd { };
mold = callPackage ../development/tools/mold {
stdenv = llvmPackages_latest.stdenv;
};
msgpack-tools = callPackage ../development/tools/msgpack-tools { };
msgpuck = callPackage ../development/libraries/msgpuck { };