diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2023-01-08 10:57:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 10:57:46 +0100 |
commit | fbe3bfa1383456f8cb6ee2a1104cb474d061e18e (patch) | |
tree | 971109e95d50b96710471fb196495aad3ae03d3b | |
parent | 005199faf769e5798f29ed46f57f7d8a6f6af788 (diff) | |
parent | 0ceafc13c92cd5db4665b49f56f56e39174c42fb (diff) |
Merge pull request #209611 from r-ryantm/auto-update/mold
mold: 1.8.0 -> 1.9.0
-rw-r--r-- | pkgs/development/tools/mold/default.nix | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/pkgs/development/tools/mold/default.nix b/pkgs/development/tools/mold/default.nix index c02fa4a9fa251..b6c018693e5e8 100644 --- a/pkgs/development/tools/mold/default.nix +++ b/pkgs/development/tools/mold/default.nix @@ -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; |