Add website#serve app
This commit is contained in:
parent
6181276ae1
commit
c4fb625497
1 changed files with 15 additions and 1 deletions
|
|
@ -112,7 +112,21 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
rec {
|
||||||
|
apps.x86_64-linux.serve = {
|
||||||
|
type = "app";
|
||||||
|
program = lib.getExe (
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "serve";
|
||||||
|
runtimeInputs = [ pkgs.python3 ];
|
||||||
|
text = ''
|
||||||
|
cd ${packages.x86_64-linux.default}
|
||||||
|
python3 -m http.server
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
packages.x86_64-linux.default = pkgs.runCommand "website" { buildInputs = [ pkgs.mkdocs ]; } ''
|
packages.x86_64-linux.default = pkgs.runCommand "website" { buildInputs = [ pkgs.mkdocs ]; } ''
|
||||||
cp -r ${./static-docs} docs
|
cp -r ${./static-docs} docs
|
||||||
chmod -R +w docs
|
chmod -R +w docs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue