Control all your tooling from a single console
Managing a project's development environment involves configuring a lot of tools and occasionally getting to communicate with each other: one (or several) package managers, a CI system, a service manager (to run that local postgresql database without which you can't test anything), custom utility scripts that end up spawning everywhere, etc. Organist aims at being your main entrypoint for managaing all these different tools, so that you can get:
To start using Organist, you need Nix
to be installed and configured.
If it isn't already the case, you can get it with:
curl -L https://nixos.org/nix/install | bash
# We also need a couple of experimental Nix features
mkdir -p ~/.config/nix
echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf
Then bootstrap a project with:
nix flake init -t github:nickel-lang/organist
# Edit the project file to fit your needs
$EDITOR project.ncl
# Enter the environment
nix develop
It is also possible to use Organist without flakes, see doc/bootstrap-no-flake.md
Organist can be used to declare the dependencies for your project. These can then be instantiated using Nix.
More information on doc/dependency-management.md.
Development projects tend to require a lot of boilerplaty files to configure
all the tools involved.
Organist can take care of these through the files
option
Organist also allows you to declare a set of services that need to be running when developing your project, through the services
option
Dockerfile
can be challenging) and when running it.nix-shell
and nix develop
.
This is one of the main building blocks of Organist.
Nix itself acts at a lower level (it is strictly speaking a package manager), although a lot can be encoded in it.Devenv. This is arguably the main inspiration for Organist, with a fairly similar interface and many common principles.
The main difference between devenv and Organist is the choice of the surface language (Nix + some YAML for devenv, Nickel for Organist). This has some non-trivial implications: The first one is that Nickel being a more modern language, with more principled (and thus easier to grasp) semantics and a great tooling out-of-the-box makes it more approachable than Nix. The second one is that using a different language means that we can break free from the usual Nix idioms when we know that there's a better way.
Another important difference is that Organist tries to not sacrifice on the compatibility with Nix (by reusing the Nix command-line and exposing Flake-style outputs), meaning that Organist packages can seamlessly be integrated in Nix-based workflows.