Add package for generating rclone docs

This commit is contained in:
Manuel Thalmann 2024-05-16 02:25:41 +02:00
parent e3aa5bddbb
commit aec08e97c8

View file

@ -57,6 +57,26 @@
]; ];
}; };
in { in {
packages = {
rcloneDocs =
let
module = lib.evalModules {
modules = [
({ pkgs, ... }@args: {
inherit (import ./lib/modules/rclone.nix args) options;
})
];
};
optionsDoc = pkgs.nixosOptionsDoc {
options = module.options;
};
in
pkgs.runCommand "options-doc.md" {} ''
cat ${optionsDoc.optionsCommonMark} >> $out
'';
};
devShells.default = pkgs.mkShellNoCC ( devShells.default = pkgs.mkShellNoCC (
with pkgs; with pkgs;
{ {