Unverified Commit 6dfec1b7 authored by Robert Scott's avatar Robert Scott Committed by GitHub
Browse files

Merge pull request #268783 from figsoda/rust-code-analysis

rust-code-analysis: fix build on darwin
parents c62aa4c7 3e39348b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
{ 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";