3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/mold/default.nix

39 lines
884 B
Nix
Raw Normal View History

2021-07-12 20:12:26 +01:00
{ stdenv
, fetchFromGitHub
, lib
, autoPatchelfHook
, cmake
, llvmPackages_latest
, xxHash
, zlib
, openssl
}:
stdenv.mkDerivation rec {
pname = "mold";
2021-07-28 16:11:51 +01:00
version = "0.9.3";
2021-07-12 20:12:26 +01:00
src = fetchFromGitHub {
owner = "rui314";
repo = pname;
rev = "v${version}";
2021-07-28 16:11:51 +01:00
sha256 = "sha256:1z9i8nvdl9h0zydh1gd9244q96n9x1gh5y90m71bghnh7nws0zmd";
2021-07-12 20:12:26 +01:00
};
2021-07-28 16:11:51 +01:00
buildInputs = [ zlib openssl ];
2021-07-12 20:12:26 +01:00
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 ];
2021-07-17 23:19:30 +01:00
broken = stdenv.isAarch64;
2021-07-12 20:12:26 +01:00
};
}