Tools to make nix nicer to use
Project description
Nox is a small tool that makes the use of the Nix package manager easier.
Nox is written in Python 3 and requires nix 1.8 and git. It is released under MIT license.
Try it
You can install it from nixpkgs by running nix-env -i nox.
To try the last version, just clone the repository, run nix-build, and run the resulting binaries in result/bin. To install it, run nix-env -if ..
Search
Just run nox QUERY to search for a nix package. The underlying nix-env invocation is cached to make the search faster than your usual nix-env -qa | grep QUERY. In addition, package descriptions are searched as well as their names. You may specify multiple queries, in which case only packages matching all of them will be listed. Queries are considered as Python-style regular expressions.
Once you have the results, type the numbers of the packages to install.
Bonus: if you enter the letter ‘s’ at the beginning of the package numbers list, a nix-shell will be started with those packages instead.
Review
The nox-review command helps you find what has changed in nixpkgs, and build changed packages, so you’re sure they are not broken. There are 3 modes:
nox-review wip compares the nixpkgs in the current working dir against a commit, so you can check that your changes break nothing. Defaults to comparing to HEAD (the last commit), but you can change it: nox-review wip --against master^'.
nox-review pr PR finds the packages touched by the given PR and build them.
Experimental
I’m working on a new command, nox-update, that will display information about what is about to be updated, especially giving info not provided by nixos-rebuild:
Why is everything being installed?
Which are package upgrades?
Which are expression changes?
Which are only rebuilds trigerred by dependency changes?
Especially, what package triggered the rebuild?
A picture is better than a thousand words, so here is what it looks like for now:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nix-nox-0.0.6.tar.gz
.
File metadata
- Download URL: nix-nox-0.0.6.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f5d47810e3975119617f61b5150980eb1580a06fb35cc0c3e1bc2066d838be1 |
|
MD5 | 8760d0683a77a80b3dda4d77f507b08a |
|
BLAKE2b-256 | a11b48bf04cae2c644fa53304bc01b48c04063f9537a6f73c491dd60112fcb68 |
File details
Details for the file nix_nox-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: nix_nox-0.0.6-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00bbf37dd890ed274b4e13b13d68811878d07190d070913828883be3f1e59e3c |
|
MD5 | 34cbd3544870c787bb85c4e9b502adc1 |
|
BLAKE2b-256 | e84c8dc142467a6f86c177c69973c90bba044528985dc092fc47bc8315adb2dc |