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:
parent
4874502bdf
commit
32b0aa0fe8
19
flake.nix
19
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
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue