docs/flake.nix

51 lines
1.6 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";
};
outputs =
inputs@{ self, ... }:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
snowfall = {
namespace = "amg";
meta = {
name = "aux-manual-gen";
title = "Aux Manual Generator";
};
};
outputs-builder =
channels:
let
pkgs = channels.nixpkgs;
spkgs = self.packages.${pkgs.system};
libsets = (import ./nixpkgs-doc/libsets.nix);
in
{
packages = {
lib-docs = pkgs.callPackage ./nixpkgs-doc/doc-support/lib-function-docs.nix {
inherit
libsets
pkgs
spkgs
inputs
;
};
doc-locations-json = pkgs.callPackage ./nixpkgs-doc/doc-support/lib-function-locations.nix {
inherit libsets pkgs;
};
md-manual = pkgs.callPackage ./nixpkgs-doc/md-manual.nix { inherit spkgs inputs; };
python-interp-table = pkgs.callPackage ./nixpkgs-doc/doc-support/python-interpreter-table.nix { };
options-doc = pkgs.callPackage ./nixpkgs-doc/options-doc.nix { inherit pkgs inputs; };
nixpkgs-doc = pkgs.callPackage ./nixpkgs-doc/nixpkgs-doc.nix { inherit inputs; };
manual-assets = pkgs.callPackage ./nixpkgs-doc/manual-assets.nix { };
};
};
};
}