-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
bumblebee-status: init at 2.2.0 #254772
bumblebee-status: init at 2.2.0 #254772
Conversation
Some things to note:
|
@imincik @lorenzleutgeb @andres-nav for your consideration. |
b27d736
to
3e8f8cd
Compare
First of all, you need to separate the changes in two commits. One adding you as a maintiner, and the other one adding the package, see #233506. Also it is better to get the source code from Github in my opinion. For the tests, it is better to disable the tests that don't work, not all of them. And it should be alphabetically ordered in |
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.
Very clean job, nice!
One thing I don't understand is why you chose to have a list of plugins. Both the filtering and generation of the list of names of plugins are a little unwieldy. If plugins.nix
would expose an attribute set, consuming them would be selectedPlugins = lib.filterAttrs (name: _: builtins.elem name withPlugins) allPlugins
, a list of plugins names would be allPluginNames = builtins.attrNames allPlugins
and you might even be able to get rid of all the name = "..."
noise in plugins.nix
. In case you have a good reason (which apparently I do not comprehend), just ignore this comment.
pkgs/applications/window-managers/i3/bumblebee-status/plugins.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/window-managers/i3/bumblebee-status/plugins.nix
Outdated
Show resolved
Hide resolved
@lorenzleutgeb It used to be an attribute set, but I need the |
3e8f8cd
to
0a47d0f
Compare
0a47d0f
to
c3c110e
Compare
Update:
|
pkgs/applications/window-managers/i3/bumblebee-status/plugins.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/window-managers/i3/bumblebee-status/plugins.nix
Outdated
Show resolved
Hide resolved
c3c110e
to
e5ce7ac
Compare
Hopefully final update: in the end I'd rather not package plugins with missing dependencies at all. The plugins in question are not all relevant for NixOS in any case (e.g. the ones that check the status of some other Linux package manager), but hopefully the remaining ones can be packaged at some point. |
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.
Good work @augustebaum
FIXME: This commit enables tests by by adding the `bumblebee-status` derivation that has been submitted to `nixpkgs` (<NixOS/nixpkgs#254772>). Hence this commit should be pruned at least when `bumblebee-status` is merged into `nixpkgs-unstable`.
FIXME: This commit enables tests by by adding the `bumblebee-status` derivation that has been submitted to `nixpkgs` (<NixOS/nixpkgs#254772>). Hence this commit should be pruned at least when `bumblebee-status` is merged into `nixpkgs-unstable`.
FIXME: This commit enables tests by by adding the `bumblebee-status` derivation that has been submitted to `nixpkgs` (<NixOS/nixpkgs#254772>). Hence this commit should be pruned at least when `bumblebee-status` is merged into `nixpkgs-unstable`.
e5ce7ac
to
074eb94
Compare
Remove redundant |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2697 |
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.
Only minor comments. Still very clean, and IMO good to merge!
pkgs/applications/window-managers/i3/bumblebee-status/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/window-managers/i3/bumblebee-status/plugins.nix
Outdated
Show resolved
Hide resolved
We sat together at #ZurichZHF, I have some suggestions against this branch: augustebaum#1 |
233159b
to
e4f8c14
Compare
df9f7e2
to
d10c9db
Compare
d10c9db
to
51e20bb
Compare
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.
Went through some iterations with @augustebaum at #ZurichZHF, looking great now!
Thanks for the thoughtful review! |
Congratulations @augustebaum ! |
Description of changes
This creates a package for
bumblebee-status
, a status program for use with the i3 window manager (or similar).Because the
bumblebee-status
includes a large number of plugins within its source code (see here for the docs and here for the source code), each with its own set of dependencies, the package can be overriden in the form of the argumentwithPlugins
, which is the list of plugins to get the dependencies for. By default the list is empty (i.e. no extra dependencies are installed, although the program still has access to the plugins).Hence this PR includes two packages:
bumblebee-status
, andbumblebee-status-full
for which all plugin dependencies are added aspropagatedBuildInputs
.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)