Skip to content

Commit 58085b5

Browse files
rhelmotJohnRTitor
authored andcommitted
valgrind: don't use FreeBSD kernel version, use libc version
1 parent 0d54c58 commit 58085b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkgs/development/tools/analysis/valgrind/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ stdenv.mkDerivation rec {
4949
separateDebugInfo = stdenv.hostPlatform.isLinux;
5050

5151
preConfigure = lib.optionalString stdenv.hostPlatform.isFreeBSD ''
52-
substituteInPlace configure --replace '`uname -r`' \
53-
${toString stdenv.hostPlatform.parsed.kernel.version}.0-
52+
substituteInPlace configure --replace-fail '`uname -r`' ${stdenv.cc.libc.version}-
5453
'' + lib.optionalString stdenv.hostPlatform.isDarwin (
5554
let OSRELEASE = ''
5655
$(awk -F '"' '/#define OSRELEASE/{ print $2 }' \

0 commit comments

Comments
 (0)