mold: add changelog to meta

This commit is contained in:
Fabian Affolter 2023-01-08 09:51:50 +01:00 committed by GitHub
parent 8e586a2757
commit 0ceafc13c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,22 +17,33 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "rui314";
repo = pname;
rev = "v${version}";
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;