libversion: fix tests on Darwin (#98361)
This commit is contained in:
parent
8be7347e2b
commit
a2228f4c18
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, cmake }:
|
||||
{ stdenv, fetchFromGitHub, cmake, lib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libversion";
|
||||
|
@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
cmakeFlags = lib.optional stdenv.isDarwin [
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # needed for tests
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=/build/source/build/libversion/''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue