mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
72a893c9d0
* mold: 0.9.3 -> 0.9.6 * Update pkgs/development/tools/mold/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
39 lines
877 B
Nix
39 lines
877 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, lib
|
|
, autoPatchelfHook
|
|
, cmake
|
|
, llvmPackages_latest
|
|
, xxHash
|
|
, zlib
|
|
, openssl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mold";
|
|
version = "0.9.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rui314";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0mj258fy8l4i23jd6ail0xrrq3das7lmrf1brrr1591ahx4vjj14";
|
|
};
|
|
|
|
buildInputs = [ 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;
|
|
};
|
|
}
|