1
0
Fork 0
forked from Skynet/wiki
wiki/flake.nix

35 lines
912 B
Nix
Raw Normal View History

{
description = "Skynet Wiki";
inputs = {
utils.url = "github:numtide/flake-utils";
2024-08-20 19:41:20 +00:00
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
};
2024-08-20 19:41:20 +00:00
outputs = { self, nixpkgs, utils, alejandra}: utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
2024-08-19 21:32:18 +00:00
in {
2024-08-20 19:41:20 +00:00
packages.formatter = alejandra.defaultPackage.${system};
defaultPackage = pkgs.stdenv.mkDerivation {
2024-08-19 21:32:18 +00:00
name = "skynet-wiki";
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;";
};
2024-08-16 14:37:25 +00:00
devShells.default = pkgs.mkShell {
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-19 21:32:18 +00:00
}