beancount-language-server: fix build on darwin

This commit is contained in:
Weijia Wang 2024-01-28 05:57:15 +01:00
parent f3b018344b
commit a94f12d719

View file

@ -1,6 +1,7 @@
{ lib
, fetchFromGitHub
, rustPlatform
, stdenv
}:
rustPlatform.buildRustPackage rec {
@ -16,6 +17,11 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-NMSNCURSO1iIWHH27FI5Y0q7+Ghds8VSxRGBOp+fH6A=";
# Workaround for https://github.com/NixOS/nixpkgs/issues/166205
env = lib.optionalAttrs (stdenv.cc.libcxx != null) {
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};
doInstallCheck = true;
postInstallCheck = ''
$out/bin/beancount-language-server --help > /dev/null