mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 15:27:50 +00:00
cbqn: pass adjusted linker flags for darwin
This commit is contained in:
parent
1d7d8b4b0a
commit
ad0537ab1f
@ -50,7 +50,12 @@ stdenv.mkDerivation rec {
|
||||
${bqn-path} genRuntime ${mbqn-source}
|
||||
'' else ''
|
||||
cp ${cbqn-bytecode-files}/src/gen/{compiles,explain,formatter,runtime0,runtime1,src} src/gen/
|
||||
'');
|
||||
'')
|
||||
# Need to adjust ld flags for darwin manually
|
||||
# https://github.com/dzaima/CBQN/issues/26
|
||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
makeFlagsArray+=(LD_LIBS="-ldl -lffi")
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
Loading…
Reference in New Issue
Block a user