Skip to content

Commit

Permalink
nushellPlugins: improve clang build
Browse files Browse the repository at this point in the history
The variable is needed on all clang builds. Macos error was incidental
since it triggers clang by default.
  • Loading branch information
viraptor authored and Lainera committed Dec 20, 2023
1 parent 5315ead commit 00e3fe2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkgs/shells/nushell/plugins/formats.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
inherit (nushell) version src;
cargoHash = "sha256-eGRaYbYB+zHT8rXm6aCrnPVgyDA8ltsg0GOYgghmov0=";

env = lib.optionalAttrs stdenv.isDarwin {
env = lib.optionalAttrs stdenv.cc.isClang {
LIBCLANG_PATH = "${libclang.lib}/lib";
};
nativeBuildInputs = [ pkg-config ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/shells/nushell/plugins/gstat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
inherit (nushell) version src;
cargoHash = "sha256-Ar5rFPHf+ugZuugVKVRFACYhh3F0JvQtfp6KibPIByw=";

env = lib.optionalAttrs stdenv.isDarwin {
env = lib.optionalAttrs stdenv.cc.isClang {
LIBCLANG_PATH = "${libclang.lib}/lib";
};
nativeBuildInputs = [ pkg-config ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/shells/nushell/plugins/query.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rustPlatform.buildRustPackage {
inherit (nushell) version src;
cargoHash = "sha256-NVdXbpmGBAcv47jbel2cccoe0m2FInSSOnMWofqtpiM=";

env = lib.optionalAttrs stdenv.isDarwin {
env = lib.optionalAttrs stdenv.cc.isClang {
LIBCLANG_PATH = "${libclang.lib}/lib";
};
buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];
Expand Down

0 comments on commit 00e3fe2

Please sign in to comment.