Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drmikecrowe/nur-packages
A collection of xonsh-xontribs for NUR repository
https://github.com/drmikecrowe/nur-packages
xonsh xonsh-nix xontrib
Last synced: 3 days ago
JSON representation
A collection of xonsh-xontribs for NUR repository
- Host: GitHub
- URL: https://github.com/drmikecrowe/nur-packages
- Owner: drmikecrowe
- License: mit
- Created: 2024-06-23T20:12:11.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-10-30T10:27:12.000Z (10 days ago)
- Last Synced: 2024-10-30T11:29:20.388Z (10 days ago)
- Topics: xonsh, xonsh-nix, xontrib
- Language: Nix
- Homepage:
- Size: 114 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nur-packages
**A collection of xonsh-xontribs for [NUR](https://github.com/nix-community/NUR) repository**
![Build and populate cache](https://github.com/drmikecrowe/nur-packages/workflows/Build%20and%20populate%20cache/badge.svg)
[![Cachix Cache](https://img.shields.io/badge/cachix-xonsh-xontribs.svg)](https://xonsh-xontribs.cachix.org)
- [Home Page](https://nur.nix-community.org/repos/xonsh-xontribs/)
- [Github](https://github.com/drmikecrowe/nur-packages)Xonsh is now included in this NUR as well:
- [xonsh 0.18.2](https://github.com/xonsh/xonsh) and [Xonsh Website](https://xon.sh)
The following xontribs are available in this NUR repo:
- [xontrib-abbrevs](https://github.com/xonsh/xontrib-abbrevs)
- [xontrib-bashisms](https://github.com/xonsh/xontrib-bashisms)
- [xontrib-chatgpt](https://github.com/jpal91/xontrib-chatgpt)
- [xontrib-clp](https://github.com/anki-code/xontrib-clp)
- [xontrib-debug-tools](https://github.com/xonsh/xontrib-debug-tools)
- [xontrib-direnv](https://github.com/74th/xonsh-direnv)
- [xontrib-dot-dot](https://github.com/yggdr/xontrib-dotdot)
- [xontrib-fish-completer](https://github.com/xonsh/xontrib-fish-completer)
- [xontrib-gitinfo](https://github.com/dyuri/xontrib-gitinfo)
- [xontrib-jupyter](https://github.com/xonsh/xontrib-jupyter)
- [xontrib-prompt-starship](https://github.com/anki-code/xontrib-prompt-starship)
- [xontrib-readable-traceback](https://github.com/vaaaaanquish/xontrib-readable-traceback)
- [xontrib-sh](https://github.com/anki-code/xontrib-sh)
- [xontrib-term-integrations](https://github.com/jnoortheen/xontrib-term-integrations)
- [xontrib-vox](https://github.com/xonsh/xontrib-vox)
- [xontrib-zoxide](https://github.com/dyuri/xontrib-zoxide)## Usage
- Follow the [NUR Installation Instructions](https://nur.nix-community.org/documentation/)
- Activate like this```nix
{ config, lib, ... }: let
inherit (config.nur.repos) xonsh-xontribs;
in {
config = lib.mkIf (cfg.enable) {
programs.xonsh = with xonsh-xontribs; {
enable = true;
package = xonsh-wrapper.override {
xonsh = xonsh;
extraPackages = ps: [
xontrib-direnv
xontrib-zoxide
# ...
];
};
};
};
}
```Probably the easiest way to use this is as an overlay for nixpkgs. In your flake, add both
this repository and nixpkgs. Then apply this overlay when you import the nixpkgs overlay.```
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/unstable";
xonsh-xontrib.url = "github:drmikecrowe/nur-packages";
};outputs = { self, nixpkgs, xonsh-xontrib, ... }@inputs: {
let
packageSet = system: (import nixpkgs { inherit system; overlays = [ xonsh-xontrib.overlays ]; };
in {
devShells.x86_64-linux = let
pkgs = packageSet "x86_64-linux";
in {
buildInputs = with pkgs; [
xonsh.override {
extraPackages = (ps: [
ps.xonsh-direnv
ps.xontrib-vox
]);
}
];
};
};
}
```You should be able to use this similarly wherever you import nixpkgs by setting it as one over the overlays.
## Cachix Public Keys
- [https://xonsh-xontribs.cachix.org](https://xonsh-xontribs.cachix.org)
- `xonsh-xontribs.cachix.org-1:LgP0Eb1miAJqjjhDvNafSrzBQ1HEtfNl39kKtgF5LBQ=`## Contributing
This is still very much a work in progress, and will be enhanced over time. However, the shell for a given xontrib is created by the `create-xontrib-overlay.xsh` script. This will build a shell with a possible build setup for the xontrib that you can test. Submit a PR and we will expand this repo with as many xontribs as we can.