mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
846ad444c7
method documentation of nixos docs from python doc strings
14 lines
243 B
Nix
14 lines
243 B
Nix
{ runCommand
|
|
, python3
|
|
}:
|
|
|
|
let
|
|
env = { nativeBuildInputs = [ python3 ]; };
|
|
in
|
|
|
|
runCommand "nixos-test-driver-docstrings" env ''
|
|
mkdir $out
|
|
python3 ${./extract-docstrings.py} ${./test_driver/machine.py} \
|
|
> $out/machine-methods.md
|
|
''
|