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-26 19:21:04 +00:00
|
|
|
alejandra.url = "github:kamadorueda/alejandra";
|
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}";
|
2024-08-26 19:14:43 +00:00
|
|
|
# find these here https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=python312Packages.mkdocs
|
|
|
|
packages = with pkgs.python3Packages; [
|
|
|
|
mkdocs
|
|
|
|
mkdocs-material
|
2024-09-14 20:26:19 +00:00
|
|
|
mkdocs-git-authors-plugin
|
|
|
|
mkdocs-git-revision-date-localized-plugin
|
2024-08-26 19:14:43 +00:00
|
|
|
];
|
2024-08-26 19:02:59 +00:00
|
|
|
in {
|
|
|
|
formatter = alejandra.defaultPackage.${system};
|
|
|
|
defaultPackage = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "skynet-wiki";
|
|
|
|
src = self;
|
2024-08-26 19:14:43 +00:00
|
|
|
buildInputs = packages;
|
2024-09-14 20:26:19 +00:00
|
|
|
buildPhase = "tar -zxf _git.tar.gz && mkdocs build";
|
2024-08-26 19:02:59 +00:00
|
|
|
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";
|
2024-08-26 19:14:43 +00:00
|
|
|
packages = packages;
|
2024-08-26 19:02:59 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
2024-08-19 21:32:18 +00:00
|
|
|
}
|