Commit 5f8f287c authored by Simon Žlender's avatar Simon Žlender Committed by Anderson Torres
Browse files

nickel: fix build on darwin

parent 9ec96384
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, python3
, nix-update-script
}:
@@ -36,6 +37,11 @@ rustPlatform.buildRustPackage rec {

  cargoBuildFlags = [ "-p nickel-lang-cli" "-p nickel-lang-lsp" ];

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

  nativeBuildInputs = [
    python3
  ];