nix: since dev and build were using teh same packages
This commit is contained in:
parent
6b173610f8
commit
01af4979a6
1 changed files with 10 additions and 8 deletions
18
flake.nix
18
flake.nix
|
@ -8,24 +8,26 @@
|
|||
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
|
||||
mkdocs-git-revision-date-localized-plugin
|
||||
];
|
||||
|
||||
in {
|
||||
defaultPackage = pkgs.stdenv.mkDerivation {
|
||||
name = "skynet-wiki";
|
||||
src = self;
|
||||
buildInputs = [
|
||||
pkgs.python3Packages.mkdocs
|
||||
pkgs.python3Packages.mkdocs-material
|
||||
];
|
||||
buildInputs = packages;
|
||||
buildPhase = "mkdocs build";
|
||||
installPhase = "mkdir -p $out; cp -R site/* $out;";
|
||||
};
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
name = "Skynet Wiki env";
|
||||
packages = [
|
||||
pkgs.python3Packages.mkdocs
|
||||
pkgs.python3Packages.mkdocs-material
|
||||
];
|
||||
packages = packages;
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue