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
bashtop: init at 0.8.23 #86673
bashtop: init at 0.8.23 #86673
Conversation
sha256 = "0y6yxm2vmbz0373cfdl6mjh8vhs0r0wcng82n304klx90qxg3ljp"; | ||
}; | ||
|
||
buildInputs = [ bash_5 curl lm_sensors procps-ng sysstat ]; |
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.
buildInputs = [ bash_5 curl lm_sensors procps-ng sysstat ]; | |
buildInputs = [ bash_5 curl lm_sensors procps sysstat ]; |
Sorry, forgot to suggest this change, too.
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.
And I forgot to try building it. Thanks!
Fixups: - bashtop: use procps instead of procps-ng alias Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
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.
When I run this in a pure nix-shell (nix-shell -p bashtop --pure -I nixpkgs=.
), the net and processes widgets don't work, nor does it detect the name of my CPU, and exiting leaves artifacts from the UI. Sorry I can't help much more than that, at the moment. Image of uncleared terminal attached below:
That said, in a normal nix-shell
(like the one nixpkgs-review
drops you into), it works perfectly. Probably impurities of my Arch+Nix system leaking through.
Works fine for me on NixOS. |
Can make a feature request for a .desktop launcher file? |
@ehmry Do you mean for upstream or as part of this PR? |
As part of the PR to make life easy for the Nix hostages. Just a suggestion, definitely not a blocker. |
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.
If it works fine on NixOS, that's good enough for me. Diff LGTM, runs fine (in a not-pure shell :P)
[3 built, 3 copied (2.2 MiB), 0.6 MiB DL]
https://github.com/NixOS/nixpkgs/pull/86673
1 package built:
bashtop
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.
The buildInputs
are not being carried over as runtime deps, which is the cause of the failure under a pure nix shell -- they're simply expected to (impurely) be present.
You can easily reproduce this from a nixpkgs-review shell by running nix-shell --pure
. Then, try editing the nixpkgs-review shell.nix, manually adding the dependencies. Rerun the pure shell, and now it's working.
The paths to sed, ps, ... should either be patched in or the entire tool should be wrapped with a PATH
that pulls in the deps.
Any update on this? |
I marked this as stale due to inactivity. → More info |
install -Dm755 ${pname} $out/bin/${pname} | ||
''; | ||
|
||
meta = with stdenv.lib; { |
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.
meta = with stdenv.lib; { | |
meta = with lib; { |
|
||
dontBuild = true; | ||
installPhase = '' | ||
install -Dm755 ${pname} $out/bin/${pname} |
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.
With makeWrapper
you can provide the runtime executable dependencies. You dont' have to add them to buildInputs
, because that only has the effect of setting some environment variables during the build process; not at runtime.
I marked this as stale due to inactivity. → More info |
Motivation for this change
https://github.com/aristocratos/bashtop/releases/tag/v0.8.23
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)