-
-
Notifications
You must be signed in to change notification settings - Fork 77
treewide: general maintenance work #264
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
base: master
Are you sure you want to change the base?
Changes from all commits
722f58a
e062fbd
71a2473
4a9767c
7925b32
f76807e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| version: 2 | ||
| updates: | ||
| # Update Cargo deps | ||
| - package-ecosystem: cargo | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
|
|
||
| # Update used workflows | ||
| - package-ecosystem: github-actions | ||
| directory: "/" | ||
| schedule: | ||
| interval: daily |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| [formatting] | ||
| align_entries = true | ||
| column_width = 100 | ||
| compact_arrays = false | ||
| reorder_inline_tables = true | ||
| reorder_keys = true | ||
|
|
||
| [[rule]] | ||
| include = [ "**/Cargo.toml" ] | ||
| keys = [ "package" ] | ||
|
|
||
| [rule.formatting] | ||
| reorder_keys = false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| [package] | ||
| name = "anyrun-plugin" | ||
| name = "anyrun-plugin" | ||
| version = "25.9.3" | ||
| edition = "2021" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
| [dependencies] | ||
| abi_stable = "0.11.1" | ||
| abi_stable = "0.11.1" | ||
| anyrun-interface = { git = "https://github.com/anyrun-org/anyrun-interface" } | ||
| anyrun-macros = { path = "../anyrun-macros" } | ||
| anyrun-macros = { path = "../anyrun-macros" } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,22 @@ | ||
| [package] | ||
| name = "anyrun" | ||
| name = "anyrun" | ||
| version = "25.9.3" | ||
| edition = "2021" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
| [dependencies] | ||
| anyrun-macros = { path = "../anyrun-macros" } | ||
| abi_stable = "0.11.1" | ||
| ron = "0.8.0" | ||
| serde = { version = "1.0.210", features = ["derive"] } | ||
| anyrun-interface = { git = "https://github.com/anyrun-org/anyrun-interface" } | ||
| abi_stable = "0.11.1" | ||
| anyrun-interface = { git = "https://github.com/anyrun-org/anyrun-interface" } | ||
| anyrun-macros = { path = "../anyrun-macros" } | ||
| anyrun-provider-ipc = { git = "https://github.com/anyrun-org/anyrun-provider" } | ||
| clap = { version = "4.2.7", features = ["derive"] } | ||
| relm4 = { git = "https://github.com/Kirottu/Relm4", branch = "service" } | ||
|
|
||
| clap = { features = [ "derive" ], version = "4.2.7" } | ||
| gtk4 = "0.10.0" | ||
| gtk4-layer-shell = "0.6.3" | ||
| gtk4 = { version = "0.10.0", features = ["v4_12"] } | ||
| serde_json = "1.0.143" | ||
| tokio = { version = "1.47.1", features = ["sync", "rt-multi-thread", "net", "macros"] } | ||
| tree_magic_mini = "3.2.0" | ||
| relm4 = { branch = "service", git = "https://github.com/Kirottu/Relm4" } | ||
| ron = "0.8.0" | ||
| serde = { features = [ "derive" ], version = "1.0.210" } | ||
| serde_json = "1.0.143" | ||
| tokio = { features = [ "sync", "rt-multi-thread", "net", "macros" ], version = "1.47.1" } | ||
| tree_magic_mini = "3.2.0" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,8 +40,8 @@ let | |
| attrs | ||
| ; | ||
|
|
||
| defaultPackage = self.packages.${pkgs.stdenv.hostPlatform.system}.default; | ||
| defaultProvider = self.packages.${pkgs.stdenv.hostPlatform.system}.anyrun-provider; | ||
| defaultPackage = self.packages.${pkgs.stdenv.hostplatform.system}.default; | ||
| defaultProvider = defaultProvider.passthru.anyrun-provider or null; | ||
| cfg = config.programs.anyrun; | ||
| in | ||
| { | ||
|
|
@@ -58,7 +58,11 @@ in | |
| description = '' | ||
| Enable running Anyrun as a daemon, allowing for faster startup speed. | ||
|
|
||
| NOTE: This is required for clipboard functionality. | ||
| ::: {.note} | ||
|
|
||
| This is required for the clipboard functionality | ||
|
|
||
| ::: | ||
| ''; | ||
| }; | ||
|
|
||
|
|
@@ -72,6 +76,7 @@ in | |
| Anyrun package to use. Defaults to the one provided by the flake. | ||
| ''; | ||
| }; | ||
|
|
||
| config = | ||
| let | ||
| mkNumericOption = | ||
|
|
@@ -119,6 +124,7 @@ in | |
| provider = mkOption { | ||
| type = package; | ||
| default = defaultProvider; | ||
| defaultText = literalExpression "anyrun.packages.${pkgs.stdenv.hostPlatform.sytstem}.default.passthru.anyrun-provider"; | ||
| description = '' | ||
| The program that is used for loading the plugins, and for the communcation with them. | ||
| ''; | ||
|
|
@@ -359,6 +365,19 @@ in | |
| (assertNumeric cfg.config.height) | ||
| (assertNumeric cfg.config.x) | ||
| (assertNumeric cfg.config.y) | ||
|
|
||
| { | ||
| assertion = cfg.package.anyrun-provider != null; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't this trigger every time a package does have a valid passthru instead of only when it doesn't? Also, since you can still configure the provider through the module ( |
||
| message = '' | ||
| Anyrun expects 'anyrun-provider' to be exposed under 'passthru.anyrun-provider'. This is done | ||
| automatically in the Anyrun flake, but may not be the case if you are using the Home Manager | ||
| module from the Anyrun flake with 'pkgs.anyrun'. You may consider: | ||
|
|
||
| 1. Using the Home Manager module from Home Manager to keep using 'pkgs.anyrun' | ||
| 2. Using the Home Manager module from Anyrun, but don't override the package (recommended) | ||
| 3. Ensure that your Anyrun package correctly provides 'anyrun-provider' under the passthru attr | ||
| ''; | ||
| } | ||
| ]; | ||
|
|
||
| warnings = | ||
|
|
@@ -414,7 +433,7 @@ in | |
| if cfg.config.maxEntries == null then "None" else "Some(${toString cfg.config.maxEntries})" | ||
| }, | ||
| plugins: ${toJSON parsedPlugins}, | ||
| provider: "${lib.getExe cfg.config.provider}", | ||
| provider: ${if cfg.config.provider == null then "None" else "${lib.getExe cfg.config.provider}"}, | ||
| ${optionalString (cfg.config.extraLines != null) cfg.config.extraLines} | ||
| ${keybinds} | ||
| ) | ||
|
|
||
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.
This looks like a typo.
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.
Which part,
passthru?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.
defaultProvider = defaultProvider.<the rest>