mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-18 03:04:32 +03:00
cmark: fix tests on darwin
Use DYLD_FALLBACK_LIBRARY_PATH to find the library.
This commit is contained in:
parent
18c7c355fb
commit
c977af0b02
@ -19,10 +19,12 @@ stdenv.mkDerivation rec {
|
||||
"-DCMARK_STATIC=OFF"
|
||||
];
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
doCheck = true;
|
||||
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=$(readlink -f ./src)
|
||||
preCheck = let
|
||||
lib_path = if stdenv.isDarwin then "DYLD_FALLBACK_LIBRARY_PATH" else "LD_LIBRARY_PATH";
|
||||
in ''
|
||||
export ${lib_path}=$(readlink -f ./src)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user