nix: since dev and build were using teh same packages
This commit is contained in:
parent
6b173610f8
commit
85da87e6b2
1 changed files with 9 additions and 8 deletions
17
flake.nix
17
flake.nix
|
@ -8,24 +8,25 @@
|
||||||
outputs = { self, nixpkgs, utils, }: utils.lib.eachDefaultSystem (system:
|
outputs = { self, nixpkgs, utils, }: utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages."${system}";
|
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 {
|
in {
|
||||||
defaultPackage = pkgs.stdenv.mkDerivation {
|
defaultPackage = pkgs.stdenv.mkDerivation {
|
||||||
name = "skynet-wiki";
|
name = "skynet-wiki";
|
||||||
src = self;
|
src = self;
|
||||||
buildInputs = [
|
buildInputs = packages;
|
||||||
pkgs.python3Packages.mkdocs
|
|
||||||
pkgs.python3Packages.mkdocs-material
|
|
||||||
];
|
|
||||||
buildPhase = "mkdocs build";
|
buildPhase = "mkdocs build";
|
||||||
installPhase = "mkdir -p $out; cp -R site/* $out;";
|
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 = packages;
|
||||||
pkgs.python3Packages.mkdocs
|
|
||||||
pkgs.python3Packages.mkdocs-material
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue