pkgsCross.x86_64-freebsd.valgrind-light: fix build

Valgrind got a bit stricter about the format of uname -r output.

Fixes: cbc990308c ("valgrind: 3.20.0 -> 3.21.0")
This commit is contained in:
Alyssa Ross 2023-10-18 07:35:13 +00:00
parent 5886d77561
commit 0e3823412b

View File

@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
preConfigure = lib.optionalString stdenv.isFreeBSD ''
substituteInPlace configure --replace '`uname -r`' \
${toString stdenv.hostPlatform.parsed.kernel.version}.0
${toString stdenv.hostPlatform.parsed.kernel.version}.0-
'' + lib.optionalString stdenv.isDarwin (
let OSRELEASE = ''
$(awk -F '"' '/#define OSRELEASE/{ print $2 }' \