1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00

split dev requirements into a shell

This commit is contained in:
Alejandro Sanchez Medina 2023-10-10 19:11:34 +01:00
parent 4874502bdf
commit 32b0aa0fe8

View file

@ -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
];
};
}
);
}