Merge pull request #304663 from wegank/bindgen-1

nushellPlugins: use rustPlatform.bindgenHook
This commit is contained in:
Yt
2024-04-19 21:18:44 +00:00
committed by GitHub
4 changed files with 7 additions and 15 deletions
+2 -5
View File
@@ -5,7 +5,6 @@
, pkg-config
, IOKit
, Foundation
, libclang
, nix-update-script
}:
@@ -14,10 +13,8 @@ rustPlatform.buildRustPackage rec {
inherit (nushell) version src;
cargoHash = "sha256-mInMs0kAJn3/fgRAG0E8hgvaly2G68kT5O+D83pLq78=";
env = lib.optionalAttrs stdenv.cc.isClang {
LIBCLANG_PATH = "${libclang.lib}/lib";
};
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config ]
++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit Foundation ];
cargoBuildFlags = [ "--package nu_plugin_formats" ];
+2 -5
View File
@@ -5,7 +5,6 @@
, nushell
, pkg-config
, Security
, libclang
, nix-update-script
}:
@@ -14,10 +13,8 @@ rustPlatform.buildRustPackage rec {
inherit (nushell) version src;
cargoHash = "sha256-1HfuMtjtUzwsIxkYV8azttnjEyAnC7X1aMIdw2N0yxQ=";
env = lib.optionalAttrs stdenv.cc.isClang {
LIBCLANG_PATH = "${libclang.lib}/lib";
};
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config ]
++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
cargoBuildFlags = [ "--package nu_plugin_gstat" ];
+1 -4
View File
@@ -4,7 +4,6 @@
, nushell
, IOKit
, CoreFoundation
, libclang
, nix-update-script
}:
@@ -13,9 +12,7 @@ rustPlatform.buildRustPackage {
inherit (nushell) version src;
cargoHash = "sha256-takIDfMriDzZT/9JkqWPis10EaZhfwGpi7EkoOh4+vw=";
env = lib.optionalAttrs stdenv.cc.isClang {
LIBCLANG_PATH = "${libclang.lib}/lib";
};
nativeBuildInputs = lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];
cargoBuildFlags = [ "--package nu_plugin_query" ];
+2 -1
View File
@@ -27713,7 +27713,8 @@ with pkgs;
nu_scripts = callPackage ../shells/nushell/nu_scripts { };
nushellPlugins = recurseIntoAttrs (callPackage ../shells/nushell/plugins {
inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation Foundation Security;
inherit (darwin.apple_sdk.frameworks) Security;
inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation Foundation;
});
nettools = if stdenv.isLinux