|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
{ stdenv |
|
|
|
|
, fetchFromGitHub |
|
|
|
|
, fetchpatch |
|
|
|
|
, lib |
|
|
|
|
, autoPatchelfHook |
|
|
|
|
, cmake |
|
|
|
@ -20,6 +21,14 @@ stdenv.mkDerivation rec { |
|
|
|
|
sha256 = "sha256:1z9i8nvdl9h0zydh1gd9244q96n9x1gh5y90m71bghnh7nws0zmd"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
patches = [ |
|
|
|
|
# Intercept all invocations of ld, ld.gold or ld.lld |
|
|
|
|
(fetchpatch { |
|
|
|
|
url = "https://github.com/rui314/mold/commit/d25c2553ad3cfa39d99043927db1af2c028b5acf.patch"; |
|
|
|
|
sha256 = "1ic1dyvjcrj6834n6mw9id50l6nymrfn6hws6pjpy8gjk6mqfvnk"; |
|
|
|
|
}) |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
buildInputs = [ zlib openssl ]; |
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook cmake xxHash ]; |
|
|
|
|
|
|
|
|
|