mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #128889 from nitsky/mold
This commit is contained in:
commit
3ef2003b63
3 changed files with 49 additions and 0 deletions
|
@ -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";
|
||||
|
|
39
pkgs/development/tools/mold/default.nix
Normal file
39
pkgs/development/tools/mold/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue