forked from Skynet/wiki
33 lines
852 B
Nix
33 lines
852 B
Nix
{
|
|
description = "Skynet Wiki";
|
|
|
|
inputs = {
|
|
utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, utils, }: utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages."${system}";
|
|
|
|
# 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
|
|
];
|
|
|
|
in {
|
|
defaultPackage = pkgs.stdenv.mkDerivation {
|
|
name = "skynet-wiki";
|
|
src = self;
|
|
buildInputs = packages;
|
|
buildPhase = "mkdocs build";
|
|
installPhase = "mkdir -p $out; cp -R site/* $out;";
|
|
};
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
name = "Skynet Wiki env";
|
|
packages = packages;
|
|
};
|
|
}
|
|
);
|
|
}
|