-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
nushellPlugins.*: refactor, add checks, mark some as broken #420675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7c48977
nushellPlugins.net: refactor
dtomvan a76d03b
nushellPlugins.dbus: refactor
dtomvan d22a786
nushellPlugins.skim: refactor
dtomvan 7095018
nushellPlugins.formats: refactor
dtomvan e7bb58f
nushellPlugins.hcl: refactor
dtomvan 17144a6
nushellPlugins.highlight: refactor
dtomvan 4627382
nushellPlugins.polars: refactor
dtomvan 2e5baee
nushellPlugins.query: refactor
dtomvan aa9629d
nushellPlugins.gstat: refactor
dtomvan f79eb5c
nushellPlugins.units: refactor
dtomvan bd065b6
nushellPlugins.*: set pnames correctly
dtomvan 8541ae6
nushellPlugins.*: add `versionCheckHook`
dtomvan 94b1ae5
nushellPlugins.*: `doCheck = false;` where applicable
dtomvan 4e681f2
nushellPlugins.*: add load check to all
dtomvan fdcb024
nushellPlugins.units: mark as broken
dtomvan 8f7a6ec
nushellPlugins.dbus: mark as broken
dtomvan fad9265
nushellPlugins.net: mark as broken
dtomvan 3746764
nushell: comment on plugin compatibility
dtomvan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,53 +1,40 @@ | ||
| { | ||
| stdenv, | ||
| runCommand, | ||
| lib, | ||
| rustPlatform, | ||
| pkg-config, | ||
| nix-update-script, | ||
| fetchFromGitHub, | ||
| dbus, | ||
| nushell, | ||
| nushell_plugin_dbus, | ||
| }: | ||
|
|
||
| rustPlatform.buildRustPackage rec { | ||
| rustPlatform.buildRustPackage (finalAttrs: { | ||
| pname = "nu_plugin_dbus"; | ||
| version = "0.14.0"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "devyn"; | ||
| repo = pname; | ||
| rev = version; | ||
| repo = "nu_plugin_dbus"; | ||
| tag = finalAttrs.version; | ||
| hash = "sha256-Ga+1zFwS/v+3iKVEz7TFmJjyBW/gq6leHeyH2vjawto="; | ||
| }; | ||
|
|
||
| useFetchCargoVendor = true; | ||
| cargoHash = "sha256-7pD5LA1ytO7VqFnHwgf7vW9eS3olnZBgdsj+rmcHkbU="; | ||
|
|
||
| nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; | ||
| buildInputs = [ dbus ]; | ||
|
|
||
| passthru = { | ||
| updateScript = nix-update-script { }; | ||
| tests.check = | ||
| let | ||
| nu = lib.getExe nushell; | ||
| plugin = lib.getExe nushell_plugin_dbus; | ||
| in | ||
| runCommand "${pname}-test" { } '' | ||
| touch $out | ||
| ${nu} -n -c "plugin add --plugin-config $out ${plugin}" | ||
| ${nu} -n -c "plugin use --plugin-config $out dbus" | ||
| ''; | ||
| }; | ||
| passthru.updateScript = nix-update-script { }; | ||
|
|
||
| meta = with lib; { | ||
| meta = { | ||
| description = "Nushell plugin for communicating with D-Bus"; | ||
| mainProgram = "nu_plugin_dbus"; | ||
| homepage = "https://github.com/devyn/nu_plugin_dbus"; | ||
| license = licenses.mit; | ||
| maintainers = with maintainers; [ aftix ]; | ||
| platforms = with platforms; linux; | ||
| license = lib.licenses.mit; | ||
| maintainers = with lib.maintainers; [ aftix ]; | ||
| platforms = lib.platforms.linux; | ||
| # "Plugin `dbus` is compiled for nushell version 0.101.0, which is not | ||
| # compatible with version 0.105.1" | ||
| broken = true; | ||
| }; | ||
| } | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,39 @@ | ||
| { | ||
| stdenv, | ||
| lib, | ||
| rustPlatform, | ||
| fetchFromGitHub, | ||
| nix-update-script, | ||
| }: | ||
|
|
||
| rustPlatform.buildRustPackage rec { | ||
| pname = "nushell_plugin_net"; | ||
| rustPlatform.buildRustPackage (finalAttrs: { | ||
| pname = "nu_plugin_net"; | ||
| version = "1.10.0"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "fennewald"; | ||
| repo = "nu_plugin_net"; | ||
| rev = "refs/tags/${version}"; | ||
| tag = "${finalAttrs.version}"; | ||
| hash = "sha256-HiNydU40FprxVmRRZtnXom2kFYI04mbeuGTq8+BMh7o="; | ||
| }; | ||
|
|
||
| useFetchCargoVendor = true; | ||
| cargoHash = "sha256-tq0XqY2B7tC2ep8vH6T3nkAqxqhniqzYnhbkfB3SbHU="; | ||
|
|
||
| nativeBuildInputs = [ rustPlatform.bindgenHook ]; | ||
| nativeBuildInputs = lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; | ||
|
|
||
| # there are no tests | ||
| doCheck = false; | ||
|
|
||
| passthru.updateScript = nix-update-script { }; | ||
|
|
||
| meta = with lib; { | ||
| meta = { | ||
| description = "Nushell plugin to list system network interfaces"; | ||
| homepage = "https://github.com/fennewald/nu_plugin_net"; | ||
| license = licenses.mit; | ||
| maintainers = with maintainers; [ happysalada ]; | ||
| license = lib.licenses.mit; | ||
| maintainers = with lib.maintainers; [ happysalada ]; | ||
| mainProgram = "nu_plugin_net"; | ||
| # "Plugin `net` is compiled for nushell version 0.104.0, which is not | ||
| # compatible with version 0.105.1" | ||
| broken = true; | ||
| }; | ||
| } | ||
| }) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? Upstream might add tests in the future which will then be ignored until someone stumbles upon on this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can test, but i seem to remember that yes it is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just following https://github.com/NixOS/nixpkgs/blob/d85e3b87ffdc6e879499e54599a9d606b90955ce/doc/languages-frameworks/rust.section.md#disabling-package-tests-disabling-package-tests here: