docs-site/flake.nix

39 lines
927 B
Nix
Raw Normal View History

{
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;
};
2024-05-25 16:21:56 +00:00
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";
};
2024-05-25 16:21:56 +00:00
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;
};
};
}