Giter VIP home page Giter VIP logo

nox's Introduction

Nox

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.

screen.png

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:

http://i.imgur.com/jdOGN94.png

nox's People

Contributors

blueyed avatar bzizou avatar ctheune avatar dezgeg avatar domenkozar avatar exi avatar grantwwu avatar jkarni avatar langston-barrett avatar lheckemann avatar madjar avatar mathnerd314 avatar matthewbauer avatar nckx avatar sjmackenzie avatar symphorien avatar tdimiduk avatar veprbl avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.