Merge pull request #89243 from andersk/libversion-LD_LIBRARY_PATH

libversion: Fix unsafe concatenation of $LD_LIBRARY_PATH
This commit is contained in:
Ryan Mulligan 2020-05-31 06:41:39 -07:00 committed by GitHub
commit 03147cf7ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
preCheck = ''
export LD_LIBRARY_PATH=/build/source/build/libversion/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/build/source/build/libversion/''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
'';
doCheck = true;
checkTarget = "test";