jemalloc: keep VERSION in header file

fix the recently-introduced regression in
https://github.com/NixOS/nixpkgs/pull/393724
This commit is contained in:
Arnout Engelen
2025-04-03 20:05:40 +02:00
parent d812662ad1
commit d45431efa7
@@ -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;