docs-site/flake.nix

42 lines
961 B
Nix

{
description = "A documentation browser for Auxolotl";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.wiki = {
url = "github:auxolotl/wiki";
flake = false;
};
inputs.treefmt-nix.url = "github:numtide/treefmt-nix";
outputs =
inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
alias.packages.default = "docs-site";
snowfall = {
root = ./nix;
namespace = "auxolotl--docs-site";
};
outputs-builder =
channels:
let
treefmt = inputs.treefmt-nix.lib.evalModule channels.nixpkgs ./treefmt.nix;
in
{
formatter = treefmt.config.build.wrapper;
checks.formatting = treefmt.config.build.check inputs.self;
};
};
}