nushellPlugins: inherit version from nushell

These are inheriting nushell.src, but specify the version string
separately.  Either both or neither should be inherited.
This commit is contained in:
Aidan Gauland 2023-09-12 08:54:21 +12:00 committed by Yt
parent f66847bb37
commit 7f49fe88bb
3 changed files with 5 additions and 10 deletions

View file

@ -7,10 +7,9 @@
, Foundation
}:
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
pname = "nushell_plugin_formats";
version = "0.85.0";
src = nushell.src;
inherit (nushell) version src;
cargoHash = "sha256-WS8VRpJnn/VWS7GUkGowFf51ifUx0SbEZzcoTfx2dp0=";
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit Foundation ];

View file

@ -7,10 +7,9 @@
, Security
}:
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
pname = "nushell_plugin_gstat";
version = "0.85.0";
src = nushell.src;
inherit (nushell) version src;
cargoHash = "sha256-6luY3SIRRd9vaY9KIJcj8Q974FW0LtAvRjVpdpzkdLo=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];

View file

@ -9,10 +9,7 @@
rustPlatform.buildRustPackage {
pname = "nushell_plugin_query";
version = "0.85.0";
src = nushell.src;
inherit (nushell) version src;
cargoHash = "sha256-xyty3GfI+zNkuHs7LYHBctqXUHZ4/MNNcnnfYvI18do=";
buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];