nix: output docs in
This commit is contained in:
parent
2ecd987be6
commit
68fc04a6d2
1 changed files with 8 additions and 0 deletions
|
|
@ -58,6 +58,8 @@ in {
|
|||
inherit (self) strictDeps __structuredAttrs;
|
||||
inherit (self) doCheck doInstallCheck;
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
src = lib.fileset.toSource {
|
||||
root = ./.;
|
||||
fileset = lib.fileset.unions [
|
||||
|
|
@ -71,6 +73,12 @@ in {
|
|||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
cargo doc --document-private-items
|
||||
mkdir -p "$doc"
|
||||
cp -r ./target/doc/* "$doc/"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = rustHooks.asList ++ [
|
||||
cargo
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue