2023-09-30 18:08:15 +00:00
|
|
|
{
|
2024-08-11 21:29:00 +00:00
|
|
|
description = "Skynet Wiki";
|
2023-09-30 18:08:15 +00:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
2024-08-20 19:41:20 +00:00
|
|
|
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
|
2023-09-30 18:08:15 +00:00
|
|
|
};
|
|
|
|
|
2024-08-26 19:02:59 +00:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
utils,
|
|
|
|
alejandra,
|
|
|
|
}:
|
|
|
|
utils.lib.eachDefaultSystem (
|
|
|
|
system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages."${system}";
|
|
|
|
in {
|
|
|
|
formatter = alejandra.defaultPackage.${system};
|
|
|
|
defaultPackage = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "skynet-wiki";
|
|
|
|
src = self;
|
|
|
|
buildInputs = [
|
|
|
|
pkgs.python3Packages.mkdocs
|
|
|
|
pkgs.python3Packages.mkdocs-material
|
|
|
|
];
|
|
|
|
buildPhase = "mkdocs build";
|
|
|
|
installPhase = "mkdir -p $out; cp -R site/* $out;";
|
|
|
|
};
|
2024-08-11 21:29:00 +00:00
|
|
|
|
2024-08-26 19:02:59 +00:00
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
name = "Skynet Wiki env";
|
|
|
|
packages = [
|
|
|
|
pkgs.python3Packages.mkdocs
|
|
|
|
pkgs.python3Packages.mkdocs-material
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
2024-08-19 21:32:18 +00:00
|
|
|
}
|