mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 13:17:35 +00:00
rust-code-analysis: fix build on darwin
This commit is contained in:
parent
d4abe32acd
commit
3e39348bc6
@ -1,4 +1,4 @@
|
||||
{ lib, rustPlatform, fetchCrate }:
|
||||
{ lib, rustPlatform, fetchCrate, stdenv }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "rust-code-analysis";
|
||||
@ -12,6 +12,11 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-axrtFZQOm1/UUBq1CDFkaZCks1mWoLWmfajDfsqSBmY=";
|
||||
|
||||
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
|
||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Analyze and collect metrics on source code";
|
||||
homepage = "https://github.com/mozilla/rust-code-analysis";
|
||||
|
Loading…
Reference in New Issue
Block a user