nxo is a command line utility to bootstrap simple configuration for nix. It provides syntactic sugar and sane defaults to get you up and running with nix as quickly as possible.
Before installing nxo you'll need;
The easiest way to install is to download the binary:
curl -L https://github.com/almonk/nxo/releases/download/v0.0.4/nxo_darwin_arm64 --output /tmp/nxo && chmod +x /tmp/nxo && sudo mv /tmp/nxo /usr/local/binBe sure to swap nxo_darwin_arm64 for nxo_darwin_amd64 if you are using an Intel Mac.
Setup a project with ruby and go dependencies:
$ nxo install ruby go
Let's add sqlite to this project as well. Simply run nxo install again:
$ nxo i sqlite # `nxo i` is a shortcut for install
nxo will generate the shell.nix below;
{ pkgs ? import <nixpkgs> {}
}:
pkgs.mkShell {
buildInputs = [
pkgs.ruby
pkgs.go
pkgs.sqlite
];
}To wipe nix config:
$ nxo clean
or
$ nxo c
rm -rf /usr/local/bin/nxo
To build nxo from source locally:
$ git clone [this repo]
$ make release
