Skip to content

Commit

Permalink
nickel: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
szlend authored and AndersonTorres committed Nov 21, 2023
1 parent 9ec9638 commit 5f8f287
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/by-name/ni/nickel/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, python3
, nix-update-script
}:
Expand Down Expand Up @@ -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
];
Expand Down

0 comments on commit 5f8f287

Please sign in to comment.