diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-11-24 21:53:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-24 21:53:12 -0500 |
commit | 19ba57936ac50fd46a62ab464dc90d1f980ab080 (patch) | |
tree | 2eacb10c79a9f347b41f380e2c34862cd530ecee /pkgs | |
parent | fb077901b180ee2e0096967389baba8cb11f6b5f (diff) | |
parent | 811294e5f07c03a4fe8e76a0a052c4b4dd5929c4 (diff) |
Merge pull request #269290 from anthonyroussel/bugfix/usql
usql: fix build with clang 12+
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/us/usql/package.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/by-name/us/usql/package.nix b/pkgs/by-name/us/usql/package.nix index 2faeda9b09b9b..07cada7aed51a 100644 --- a/pkgs/by-name/us/usql/package.nix +++ b/pkgs/by-name/us/usql/package.nix @@ -1,4 +1,5 @@ { lib +, stdenv , fetchFromGitHub , buildGoModule , unixODBC @@ -49,6 +50,11 @@ buildGoModule rec { "no_adodb" ]; + # Work around https://github.com/NixOS/nixpkgs/issues/166205. + env = lib.optionalAttrs stdenv.cc.isClang { + NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; + }; + ldflags = [ "-s" "-w" |