diff options
author | チルノ <okinan@chiru.no> | 2019-10-06 23:02:34 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2019-10-07 00:02:34 -0400 |
commit | 795b1555a88627f0739188081527f23259fcc1d2 (patch) | |
tree | ed4d7674581aae83e239c94c18e2557ce6c0693e /pkgs/development/compilers/vlang | |
parent | 837cc0767dab585fed293445f9016592e5e07a54 (diff) |
vlang: Propagate build inputs, add $LDFLAGS (#70466)
Diffstat (limited to 'pkgs/development/compilers/vlang')
-rw-r--r-- | pkgs/development/compilers/vlang/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/vlang/default.nix b/pkgs/development/compilers/vlang/default.nix index d49d651a6ca56..fba11a06a6e97 100644 --- a/pkgs/development/compilers/vlang/default.nix +++ b/pkgs/development/compilers/vlang/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { }; enableParallelBuilding = true; - buildInputs = [ glfw freetype openssl ] + propagatedBuildInputs = [ glfw freetype openssl ] ++ stdenv.lib.optional stdenv.hostPlatform.isUnix upx; buildPhase = '' @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { cc -std=gnu11 $CFLAGS -w -o v $vc/v.c -lm $LDFLAGS ./v -prod -cflags `$CFLAGS` -o v compiler # Exclude thirdparty/vschannel as it is windows-specific. - find thirdparty -path thirdparty/vschannel -prune -o -type f -name "*.c" -execdir cc -std=gnu11 $CFLAGS -w -c {} ';' + find thirdparty -path thirdparty/vschannel -prune -o -type f -name "*.c" -execdir cc -std=gnu11 $CFLAGS -w -c {} $LDFLAGS ';' runHook postBuild ''; |