From d45431efa78eefb1a3bee986386e9dbf0c5f6fc2 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 3 Apr 2025 09:43:04 +0200 Subject: [PATCH] jemalloc: keep VERSION in header file fix the recently-introduced regression in https://github.com/NixOS/nixpkgs/pull/393724 --- pkgs/development/libraries/jemalloc/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/jemalloc/default.nix b/pkgs/development/libraries/jemalloc/default.nix index 5700ca81ceb2..da833969e67f 100644 --- a/pkgs/development/libraries/jemalloc/default.nix +++ b/pkgs/development/libraries/jemalloc/default.nix @@ -60,6 +60,7 @@ stdenv.mkDerivation rec { configureFlags = [ + "--with-version=${version}-0-g0000000000000000000000000000000000000000" "--with-lg-vaddr=${with stdenv.hostPlatform; toString (if isILP32 then 32 else parsed.cpu.bits)}" ] # see the comment on stripPrefix @@ -85,6 +86,11 @@ stdenv.mkDerivation rec { # Tries to link test binaries binaries dynamically and fails doCheck = !stdenv.hostPlatform.isStatic; + doInstallCheck = true; + installCheckPhase = '' + ! grep missing_version_try_git_fetch_tags $out/include/jemalloc/jemalloc.h + ''; + # Parallel builds break reproducibility. enableParallelBuilding = false;