Skip to content

xonsh: Add wrapper - #240246

Merged
adisbladis merged 1 commit into
NixOS:masterfrom
adisbladis:xonsh-envs
Jul 8, 2023
Merged

adisbladis merged 1 commit into
NixOS:masterfrom
adisbladis:xonsh-envs

Conversation

@adisbladis

@adisbladis adisbladis commented Jun 28, 2023 •

Copy link
Copy Markdown
Member
Description of changes

It is currently not obvious how to install/use xonsh with dependencies and python packages.

This PR implements a wrapper that allows you to construct a custom xonsh environment by using:

xonsh.override { extraPackages = ps: [ ps.requests ]; }
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions Bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Jun 28, 2023
@ofborg ofborg Bot added the 8.has: package (new) This PR adds a new package label Jun 28, 2023
@ofborg
ofborg Bot requested a review from vrthra June 28, 2023 02:48
@ofborg ofborg Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jun 28, 2023
Comment thread nixos/modules/programs/xonsh.nix Resolved
Comment thread pkgs/shells/xonsh/wrapper.nix Resolved
@jian-lin
jian-lin requested a review from SamLukeYes June 29, 2023 16:03
Comment thread pkgs/shells/xonsh/default.nix Resolved
It is currently not obvious how to install/use xonsh with dependencies and python packages.

This PR implements a wrapper that allows you to construct a custom xonsh environment by using:
``` nix
xonsh.override { extraPackages = ps: [ ps.requests ]; }
```

@SamLukeYes SamLukeYes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me now. Thanks!

@figsoda figsoda added the 12.approvals: 3+ This PR was reviewed and approved by three or more persons. label Jul 1, 2023
@adisbladis
adisbladis merged commit f2b2e6d into NixOS:master Jul 8, 2023
@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/bundling-xontrib-packages-with-xonsh/36371/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 3+ This PR was reviewed and approved by three or more persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants