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
beets.plugins.{alternative,copyartifacts}: fix evaluation #109679
Conversation
Commit 8c5d371 apparently did not confirm that all its alterations resulted in evaluatable expressions, meaning that these files became unevaluatable: error: undefined variable 'lib' at /var/nixup/nixpkgs/pkgs/tools/audio/beets/plugins/alternatives.nix:22:21 The fix is simply to make sure the required value is available as a function argument. Verified through evaluation.
Thats because it is not evaluated by ofborg. |
@@ -1,4 +1,4 @@ | |||
{ stdenv, fetchFromGitHub, beets, pythonPackages, glibcLocales }: | |||
{ lib, stdenv, fetchFromGitHub, beets, pythonPackages, glibcLocales }: |
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.
{ lib, stdenv, fetchFromGitHub, beets, pythonPackages, glibcLocales }: | |
{ lib, fetchFromGitHub, beets, pythonPackages, glibcLocales }: |
@@ -1,4 +1,4 @@ | |||
{ stdenv, fetchFromGitHub, beets, pythonPackages }: | |||
{ lib, stdenv, fetchFromGitHub, beets, pythonPackages }: |
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.
{ lib, stdenv, fetchFromGitHub, beets, pythonPackages }: | |
{ lib, fetchFromGitHub, beets, pythonPackages }: |
this is a bug in the beets expression: hydra doesn't evaluate or build them and ofborg tries to evaluate everything Hydra does. Please, for the long term sustainability of the project, don't just move past these sorts of issues and help us find systemic fixes. I think we need in the list of all packages:
|
@mdorman: Can you please rebase against master? This should also address the suggestions made by @SuperSandro2000. |
@grahamc: While it does solve this particular issue, I'd consider this to be a workaround. What would be a reason to re-expose the plugins other than for Hydra or ofborg eval? Unrelated to that: What about running |
I no longer use this plugin and since evaluation currently is broken upstream (blocked by [1]), let's make sure that at least the rest of Vuizvui continues to evaluate. [1]: NixOS/nixpkgs#109679 Signed-off-by: aszlig <aszlig@nix.build>
I marked this as stale due to inactivity. → More info |
Motivation for this change
Commit 8c5d371 apparently did not confirm that all its alterations resulted in evaluatable expressions, meaning that these files became unevaluatable:
The fix is simply to make sure the required value is available as a function argument.
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)