config/profiles/http/docs/nixpkgs.nix

120 lines
3.9 KiB
Nix
Raw Normal View History

2023-06-18 05:10:08 +02:00
{ config, pkgs, lib, inputs, system, ... }:
2023-02-26 06:11:55 +01:00
let
# https://stackoverflow.com/a/60232211
2023-06-18 05:10:08 +02:00
system = config.nixpkgs.system;
#mk-nixpkgs-manual = input: import "${input}/doc" { pkgs = import input { inherit system; }; };
mk-nixpkgs-manual = input: (import "${input}/pkgs/top-level/release.nix" { nixpkgs = import input { inherit system; }; }).manual;
mk-nixos-manual = input: (import "${input}/nixos/release.nix" { nixpkgs = import input { inherit system; }; }).manualHTML.${system};
2023-02-26 06:11:55 +01:00
in
{
services.docs-to-host.docs = [
2023-02-26 17:32:54 +01:00
{
dirname = "nix-manual";
path = "${pkgs.nix.doc}/share/doc/nix/manual";
2023-06-18 05:10:08 +02:00
desc = "Official Nix manual";
2023-02-26 17:32:54 +01:00
}
2023-02-26 06:11:55 +01:00
{
dirname = "nixpkgs-manual";
basename= "manual.html";
2023-06-18 05:10:08 +02:00
path = "${mk-nixpkgs-manual inputs.nixpkgs}/share/doc/nixpkgs";
desc = "Official Nixpkgs manual";
2023-02-26 06:11:55 +01:00
}
{
dirname = "nixos-manual";
2023-06-18 05:10:08 +02:00
path = "${mk-nixos-manual inputs.nixpkgs}/share/doc/nixos";
desc = "Official Nixos manual";
2023-02-26 06:11:55 +01:00
}
2023-06-18 05:10:08 +02:00
# == Old Nixpkgs manuals ==
/** /
2024-01-27 03:47:28 +01:00
{
dirname = "nixpkgs-manual-23.05";
basename= "manual.html";
path = "${mk-nixpkgs-manual inputs.nixpkgs-2213}05share/doc/nixpkgs";
desc = "Official Nixpkgs 23.05 manual";
}
2023-06-18 05:10:08 +02:00
{
dirname = "nixpkgs-manual-22.11";
basename= "manual.html";
2024-01-27 03:47:28 +01:00
path = "${mk-nixpkgs-manual inputs.nixpkgs-2211}/share/doc/nixpkgs";
2023-06-18 05:10:08 +02:00
desc = "Official Nixpkgs 22.11 manual";
}
2024-01-27 03:47:28 +01:00
{
dirname = "nixpkgs-manual-22.05";
basename= "manual.html";
path = "${mk-nixpkgs-manual inputs.nixpkgs-2205}/share/doc/nixpkgs";
desc = "Official Nixpkgs 22.05 manual";
}
2023-06-18 05:10:08 +02:00
{
dirname = "nixpkgs-manual-21.11";
basename= "manual.html";
2024-01-27 03:47:28 +01:00
path = "${mk-nixpkgs-manual inputs.nixpkgs-2111}/share/doc/nixpkgs";
2023-06-18 05:10:08 +02:00
desc = "Official Nixpkgs 21.11 manual";
}
2024-01-27 03:47:28 +01:00
{
dirname = "nixpkgs-manual-21.05";
basename= "manual.html";
path = "${mk-nixpkgs-manual inputs.nixpkgs-2105}/share/doc/nixpkgs";
desc = "Official Nixpkgs 21.05 manual";
}
2023-06-18 05:10:08 +02:00
{
dirname = "nixpkgs-manual-20.09";
basename= "manual.html";
2024-01-27 03:47:28 +01:00
path = "${mk-nixpkgs-manual inputs.nixpkgs-2009}/share/doc/nixpkgs";
2023-06-18 05:10:08 +02:00
desc = "Official Nixpkgs 20.09 manual";
}
2024-01-27 03:47:28 +01:00
{
dirname = "nixpkgs-manual-20.03";
basename= "manual.html";
path = "${mk-nixpkgs-manual inputs.nixpkgs-2003}/share/doc/nixpkgs";
desc = "Official Nixpkgs 20.03 manual";
}
2023-06-18 05:10:08 +02:00
{
dirname = "nixpkgs-manual-19.09";
basename= "manual.html";
2024-01-27 03:47:28 +01:00
path = "${mk-nixpkgs-manual inputs.nixpkgs-1909}/share/doc/nixpkgs";
2023-06-18 05:10:08 +02:00
desc = "Official Nixpkgs 19.09 manual";
}
/**/
# == Old Nixos manuals ==
/** /
{
dirname = "nixos-manual-22.11";
2024-01-27 03:47:28 +01:00
path = "${mk-nixos-manual inputs.nixpkgs-2211}/share/doc/nixos";
2023-06-18 05:10:08 +02:00
desc = "Official Nixos 22.11 manual";
}
2024-01-27 03:47:28 +01:00
{
dirname = "nixos-manual-22.05";
path = "${mk-nixos-manual inputs.nixpkgs-2205}/share/doc/nixos";
desc = "Official Nixos 22.05 manual";
}
2023-06-18 05:10:08 +02:00
{
dirname = "nixos-manual-21.11";
2024-01-27 03:47:28 +01:00
path = "${mk-nixos-manual inputs.nixpkgs-2111}/share/doc/nixos";
2023-06-18 05:10:08 +02:00
desc = "Official Nixos 21.11 manual";
}
2024-01-27 03:47:28 +01:00
{
dirname = "nixos-manual-21.05";
path = "${mk-nixos-manual inputs.nixpkgs-2105}/share/doc/nixos";
desc = "Official Nixos 21.05 manual";
}
2023-06-18 05:10:08 +02:00
{
dirname = "nixos-manual-20.09";
2024-01-27 03:47:28 +01:00
path = "${mk-nixos-manual inputs.nixpkgs-2009}/share/doc/nixos";
2023-06-18 05:10:08 +02:00
desc = "Official Nixos 20.09 manual";
}
2024-01-27 03:47:28 +01:00
{
dirname = "nixos-manual-20.03";
path = "${mk-nixos-manual inputs.nixpkgs-2003}/share/doc/nixos";
desc = "Official Nixos 20.03 manual";
}
2023-06-18 05:10:08 +02:00
{
dirname = "nixos-manual-19.09";
path = "${mk-nixos-manual inputs.nixpkgs-19}/share/doc/nixos";
desc = "Official Nixos 19.09 manual";
}
/**/
2023-02-26 06:11:55 +01:00
];
}