Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
715 B · 28 lines
Nix
1234567891011121314151617181920212223242526272829# To build this derivation, run `nix-build -A nixpkgs-manual.optionsDoc`{ lib, nixosOptionsDoc }:
let modules = lib.evalModules { modules = [ ../../pkgs/top-level/config.nix ]; class = "nixpkgsConfig"; };
root = toString ../..;
transformDeclaration = decl: let declStr = toString decl; subpath = lib.removePrefix "/" (lib.removePrefix root declStr); in assert lib.hasPrefix root declStr; { url = "https://github.com/NixOS/nixpkgs/blob/master/${subpath}"; name = subpath; };innixosOptionsDoc { inherit (modules) options; documentType = "none"; transformOptions = opt: opt // { declarations = map transformDeclaration opt.declarations; };}