From 32b0aa0fe80f1406894ba650d4b3935f913d292f Mon Sep 17 00:00:00 2001 From: Alejandro Sanchez Medina Date: Tue, 10 Oct 2023 19:11:34 +0100 Subject: [PATCH] split dev requirements into a shell --- flake.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 2e3ad30..2ed694f 100644 --- a/flake.nix +++ b/flake.nix @@ -19,8 +19,7 @@ packages.default = pkgs.stdenv.mkDerivation { name = "nix-dev"; src = self; - buildInputs = with pkgs.python310.pkgs; [ - livereload + nativeBuildInputs = with pkgs.python310.pkgs; [ linkify-it-py myst-parser sphinx @@ -29,7 +28,6 @@ sphinx-design sphinx-notfound-page sphinx-sitemap - black ]; buildPhase = '' make html @@ -39,6 +37,21 @@ cp -R build/html/* $out/ ''; }; + + devShells.default = pkgs.mkShell { + buildInputs = with pkgs.python310.pkgs; [ + black + livereload + linkify-it-py + myst-parser + sphinx + sphinx-book-theme + sphinx-copybutton + sphinx-design + sphinx-notfound-page + sphinx-sitemap + ]; + }; } ); }