add formatter, update readme, update site on change to the config #25
1 changed files with 30 additions and 24 deletions
54
flake.nix
54
flake.nix
|
@ -6,29 +6,35 @@
|
||||||
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
|
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, utils, alejandra}: utils.lib.eachDefaultSystem (system:
|
outputs = {
|
||||||
let
|
self,
|
||||||
pkgs = nixpkgs.legacyPackages."${system}";
|
nixpkgs,
|
||||||
in {
|
utils,
|
||||||
packages.formatter = alejandra.defaultPackage.${system};
|
alejandra,
|
||||||
defaultPackage = pkgs.stdenv.mkDerivation {
|
}:
|
||||||
name = "skynet-wiki";
|
utils.lib.eachDefaultSystem (
|
||||||
src = self;
|
system: let
|
||||||
buildInputs = [
|
pkgs = nixpkgs.legacyPackages."${system}";
|
||||||
pkgs.python3Packages.mkdocs
|
in {
|
||||||
pkgs.python3Packages.mkdocs-material
|
formatter = alejandra.defaultPackage.${system};
|
||||||
];
|
defaultPackage = pkgs.stdenv.mkDerivation {
|
||||||
buildPhase = "mkdocs build";
|
name = "skynet-wiki";
|
||||||
installPhase = "mkdir -p $out; cp -R site/* $out;";
|
src = self;
|
||||||
};
|
buildInputs = [
|
||||||
|
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 = [
|
||||||
pkgs.python3Packages.mkdocs
|
pkgs.python3Packages.mkdocs
|
||||||
pkgs.python3Packages.mkdocs-material
|
pkgs.python3Packages.mkdocs-material
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue