Getting Started
Installation
With Nix
-
Install Nix the package manager.
-
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 -
Create a
flake.nixfile with the contents described below. -
Run
nix develop. -
Run
prospero helpto 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 ];
};
});
}