Merge pull request #209611 from r-ryantm/auto-update/mold

mold: 1.8.0 -> 1.9.0
This commit is contained in:
Fabian Affolter 2023-01-08 10:57:46 +01:00 committed by GitHub
commit fbe3bfa138
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,27 +12,38 @@
stdenv.mkDerivation rec {
pname = "mold";
version = "1.8.0";
version = "1.9.0";
src = fetchFromGitHub {
owner = "rui314";
repo = pname;
rev = "v${version}";
hash = "sha256-VykBOXeU3I6ZSmRIlngLdoLF4V2nb5QW/f8tr9Wn9o8=";
rev = "refs/tags/v${version}";
hash = "sha256-i4+MOEZWt+Qb05HgXcGR0uDuMoOAyMhVeLPQwnGiEw8=";
};
nativeBuildInputs = [ cmake ninja ];
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [ openssl zlib ]
++ lib.optionals (!stdenv.isDarwin) [ mimalloc ];
buildInputs = [
openssl
zlib
] ++ lib.optionals (!stdenv.isDarwin) [
mimalloc
];
postPatch = ''
sed -i CMakeLists.txt -e '/.*set(DEST\ .*/d'
'';
cmakeFlags = [ "-DMOLD_USE_SYSTEM_MIMALLOC:BOOL=ON" ];
cmakeFlags = [
"-DMOLD_USE_SYSTEM_MIMALLOC:BOOL=ON"
];
NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ "-faligned-allocation" ];
NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [
"-faligned-allocation"
];
passthru.tests.version = testers.testVersion { package = mold; };
@ -45,6 +56,7 @@ stdenv.mkDerivation rec {
rapid debug-edit-rebuild cycles.
'';
homepage = "https://github.com/rui314/mold";
changelog = "https://github.com/rui314/mold/releases/tag/v${version}";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ azahi nitsky ];
platforms = platforms.unix;