docs/flake.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2024-06-30 05:43:43 +00:00
{
description = "Aux Manual Generator";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-07-01 19:09:48 +00:00
inputs.aux-wiki.url = "git+https://git.auxolotl.org/auxolotl/wiki";
inputs.aux-wiki.flake = false;
2024-06-30 05:43:43 +00:00
inputs.treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-06-30 05:43:43 +00:00
outputs =
2024-06-30 21:43:38 +00:00
inputs:
2024-06-30 05:43:43 +00:00
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
snowfall = {
namespace = "amg";
meta = {
name = "aux-manual-gen";
title = "Aux Manual Generator";
};
};
outputs-builder =
channels:
let
treefmt = inputs.treefmt-nix.lib.evalModule channels.nixpkgs ./treefmt.nix;
in
{
checks."//tmp/this-is-path-traversal" = inputs.self.packages.${channels.nixpkgs.system}.aux-wiki;
checks."/aux-wiki/path-traversal-2" = inputs.self.packages.${channels.nixpkgs.system}.aux-wiki;
checks."aux-wiki/all-good" = inputs.self.packages.${channels.nixpkgs.system}.aux-wiki;
formatter = treefmt.config.build.wrapper;
checks.formatting = treefmt.config.build.check inputs.self;
};
2024-06-30 05:43:43 +00:00
};
}