Skip to content

Commit

Permalink
split dev requirements into a shell
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrosame committed Oct 10, 2023
1 parent 4874502 commit 32b0aa0
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,7 +28,6 @@
sphinx-design
sphinx-notfound-page
sphinx-sitemap
black
];
buildPhase = ''
make html
Expand All @@ -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
];
};
}
);
}

0 comments on commit 32b0aa0

Please sign in to comment.