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 16:25:14 +00:00
|
|
|
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
|
2023-09-30 18:08:15 +00:00
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages."${system}";
|
2024-08-19 21:32:18 +00:00
|
|
|
in {
|
2024-08-20 16:25:14 +00:00
|
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
2023-09-30 18:08:15 +00:00
|
|
|
defaultPackage = pkgs.stdenv.mkDerivation {
|
2024-08-19 21:32:18 +00:00
|
|
|
name = "skynet-wiki";
|
2023-09-30 18:08:15 +00:00
|
|
|
src = self;
|
2024-08-19 21:32:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgs.python3Packages.mkdocs
|
|
|
|
pkgs.python3Packages.mkdocs-material
|
|
|
|
];
|
|
|
|
buildPhase = "mkdocs build";
|
|
|
|
installPhase = "mkdir -p $out; cp -R site/* $out;";
|
2023-09-30 18:08:15 +00:00
|
|
|
};
|
2024-08-11 21:29:00 +00:00
|
|
|
|
2024-08-16 14:37:25 +00:00
|
|
|
devShells.default = pkgs.mkShell {
|
2024-08-11 21:29:00 +00:00
|
|
|
name = "Skynet Wiki env";
|
2024-08-16 14:37:25 +00:00
|
|
|
packages = [
|
2024-08-19 21:32:18 +00:00
|
|
|
pkgs.python3Packages.mkdocs
|
|
|
|
pkgs.python3Packages.mkdocs-material
|
2024-08-11 21:29:00 +00:00
|
|
|
];
|
|
|
|
};
|
2023-09-30 18:08:15 +00:00
|
|
|
}
|
|
|
|
);
|
2024-08-19 21:32:18 +00:00
|
|
|
}
|