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

Merge pull request #268778 from figsoda/frawk

frawk: fix build on darwin
parents ab2598a7 c08116fc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
, zlib
, features ? [ "default" ]
, llvmPackages_12
, stdenv
}:

rustPlatform.buildRustPackage rec {
@@ -30,6 +31,11 @@ rustPlatform.buildRustPackage rec {
    export RUSTC_BOOTSTRAP=1
  '';

  # Work around https://github.com/NixOS/nixpkgs/issues/166205.
  env = lib.optionalAttrs stdenv.cc.isClang {
    NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
  };

  # depends on cpu instructions that may not be available on builders
  doCheck = false;