opencc: fix build
LD_LIBRARY_PATH isn't expanded properly in makeFlags, so move it to
preBuild.
Fixes: 3cd8ce3bce
("treewide: Fix unsafe concatenation of $LD_LIBRARY_PATH")
This commit is contained in:
parent
117b7677f7
commit
f16019c58f
|
@ -9,10 +9,10 @@ stdenv.mkDerivation {
|
|||
|
||||
buildInputs = [ cmake python ];
|
||||
|
||||
makeFlags = [
|
||||
preBuild = ''
|
||||
# let intermediate tools find intermediate library
|
||||
"LD_LIBRARY_PATH=$LD_LIBRARY_PATH\${LD_LIBRARY_PATH:+:}$(CURDIR)/src"
|
||||
];
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$(pwd)/src
|
||||
'';
|
||||
|
||||
# Parallel building occasionaly fails with: Error copying file "/tmp/nix-build-opencc-1.0.5.drv-0/OpenCC-ver.1.0.5/build/src/libopencc.so.1.0.0" to "/tmp/nix-build-opencc-1.0.5.drv-0/OpenCC-ver.1.0.5/build/src/tools".
|
||||
enableParallelBuilding = false;
|
||||
|
|
Loading…
Reference in a new issue