You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wrapper introduced in #240246 is supposed to accept code like: xonsh.override { extraPackages = ps: [ ps.psutil ] }, and then psutil should be importable in the resulting Xonsh package. However, when building this package, I am met with:
error: function 'anonymous lambda' called with unexpected argument 'extraPackages'
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/pkgs/by-name/xo/xonsh/package.nix:1:1:
error:
… while calling a functor (an attribute set with a '__functor' attribute)
at /nix/store/81ai25ifhr0l8rryf83h4pj8k0q2pjaj-source/flake.nix:4:37:
3| outputs = { self, nixpkgs }: {
4| packages.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.xonsh.override {
| ^
5| extraPackages = ps: [ ps.psutil ];
… from call site
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/lib/trivial.nix:955:7:
954| { # TODO: Should we add call-time "type" checking like built in?
955| __functor = self: f;
| ^
956| __functionArgs = args;
… while calling anonymous lambda
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/lib/customisation.nix:144:34:
143| # Re-call the function but with different arguments
144| overrideArgs = mirrorArgs (newArgs: makeOverridable f (overrideWith newArgs));
| ^
145| # Change the result of the function call by applying g to it
… while calling a functor (an attribute set with a '__functor' attribute)
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/lib/customisation.nix:144:43:
143| # Re-call the function but with different arguments
144| overrideArgs = mirrorArgs (newArgs: makeOverridable f (overrideWith newArgs));
| ^
145| # Change the result of the function call by applying g to it
… from call site
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/lib/trivial.nix:955:7:
954| { # TODO: Should we add call-time "type" checking like built in?
955| __functor = self: f;
| ^
956| __functionArgs = args;
… while calling anonymous lambda
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/lib/customisation.nix:136:17:
135| in
136| mirrorArgs (origArgs:
| ^
137| let
… while evaluating a branch condition
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/lib/customisation.nix:148:7:
147| in
148| if isAttrs result then
| ^
149| result // {
… while calling the 'isAttrs' builtin
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/lib/customisation.nix:148:10:
147| in
148| if isAttrs result then
| ^
149| result // {
… from call site
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/lib/customisation.nix:138:16:
137| let
138| result = f origArgs;
| ^
139|
error: function 'anonymous lambda' called with unexpected argument 'extraPackages'
at /nix/store/nm7g9fgcffl6nar6vpib220b51dyv0fl-source/pkgs/by-name/xo/xonsh/package.nix:1:1:
1| {
| ^
2| lib,
Is there a different way of getting to the wrapped Xonsh?
This behavior was changed in #314728, which includes a refactor, and the top-level xonsh package is not the wrapper now. I'm restoring the original behavior in #325813.
Describe the bug
The wrapper introduced in #240246 is supposed to accept code like:
xonsh.override { extraPackages = ps: [ ps.psutil ] }
, and thenpsutil
should be importable in the resulting Xonsh package. However, when building this package, I am met with:Is there a different way of getting to the wrapped Xonsh?
Steps To Reproduce
To reproduce:
Expected behavior
Xonsh should build.
Additional context
Possibly relevant issues:
Notify maintainers
@samlukeyes123
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: