Generate documentation for Nix Flakes.
You can install this package imperatively with the following command.
nix profile install github:snowfallorg/frost
You can install this package by adding it as an input to your Nix Flake.
{
description = "My system flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Snowfall Lib is not required, but will make configuration easier for you.
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
snowfall-frost = {
url = "github:snowfallorg/frost";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
overlays = with inputs; [
# Use the default overlay provided by this flake.
snowfall-frost.overlays.default
# There is also a named overlay, though the output is the same.
snowfall-frost.overlays."package/frost"
];
};
}
If you've added the overlay from this flake, then in your system configuration you
can add the snowfallorg.frost
package.
{ pkgs }:
{
environment.systemPackages = with pkgs; [
snowfallorg.frost
];
}
Build documentation for a given flake.
frost build github:snowfallorg/cowsay