forked from Skynet/wiki
mkdocs flake
This commit is contained in:
parent
3588ddca9e
commit
44f813ce15
1 changed files with 12 additions and 9 deletions
19
flake.nix
19
flake.nix
|
@ -3,25 +3,28 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
utils.url = "github:numtide/flake-utils";
|
utils.url = "github:numtide/flake-utils";
|
||||||
bfom.url = "gitlab:silver_rust/bfom";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, utils, bfom }: utils.lib.eachDefaultSystem (system:
|
outputs = { self, nixpkgs, utils, }: utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages."${system}";
|
pkgs = nixpkgs.legacyPackages."${system}";
|
||||||
in rec {
|
in {
|
||||||
# `nix build`
|
|
||||||
defaultPackage = pkgs.stdenv.mkDerivation {
|
defaultPackage = pkgs.stdenv.mkDerivation {
|
||||||
name = "skynet-website-renew";
|
name = "skynet-wiki";
|
||||||
src = self;
|
src = self;
|
||||||
buildPhase = "${bfom.defaultPackage."${system}"}/bin/cargo-bfom";
|
buildInputs = [
|
||||||
installPhase = "mkdir -p $out; cp -R build/* $out";
|
pkgs.python3Packages.mkdocs
|
||||||
|
pkgs.python3Packages.mkdocs-material
|
||||||
|
];
|
||||||
|
buildPhase = "mkdocs build";
|
||||||
|
installPhase = "mkdir -p $out; cp -R site/* $out;";
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
name = "Skynet Wiki env";
|
name = "Skynet Wiki env";
|
||||||
packages = [
|
packages = [
|
||||||
bfom.defaultPackage."${system}"
|
pkgs.python3Packages.mkdocs
|
||||||
|
pkgs.python3Packages.mkdocs-material
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue