From 85da87e6b252e3e775e1e33ff2fef3215c6fecd0 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Wed, 21 Aug 2024 23:23:04 +0100 Subject: [PATCH] nix: since dev and build were using teh same packages --- flake.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 586c0a0..c5d2d21 100644 --- a/flake.nix +++ b/flake.nix @@ -8,24 +8,25 @@ 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 + ]; + 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; }; } );