Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Getting Started

Installation

With Nix

  1. Install Nix the package manager.

  2. Ensure Nix Flakes are enabled. If you just installed Nix you can do:

    mkdir -p ~/.config/nix
    echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
    
  3. Create a flake.nix file with the contents described below.

  4. Run nix develop.

  5. Run prospero help to confirm your development environment is working correctly.

flake.nix

{
  description = "My prospero project";

  inputs = {
    prospero.url = "git+https://codeberg.org/theinnerlight/prospero.git";
    nixpkgs.follows = "prospero/nixpkgs";
    flake-utils.follows = "prospero/flake-utils";
  };

  outputs = { nixpkgs, flake-utils, prospero, ... }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
        prosperoPackage = prospero.packages.${system}.default;
      in
      {
        packages.default = prosperoPackage;

        devShells.default = pkgs.mkShell {
          packages = [ prosperoPackage ];
        };
      });
}