Skip to content

Commit b65ff41

Browse files
committed
include deps from default.nix in dev shell
1 parent 5e29a4a commit b65ff41

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

flake.nix

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
programs.mypy.enable = true;
2121
programs.mypy.directories."." = {
2222
modules = ["qbpm" "tests"];
23-
extraPythonPackages = with pkgs.python3.pkgs; [pyxdg click];
23+
extraPythonPackages = self.packages.x86_64-linux.default.propagatedBuildInputs;
2424
};
2525
programs.ruff.check = true;
2626
programs.ruff.format = true;
@@ -36,19 +36,18 @@
3636
default = qbpm;
3737
};
3838
devShells.default = pkgs.mkShell {
39-
buildInputs = with pkgs; [
40-
ruff
41-
(python3.withPackages (ps:
42-
with ps; [
43-
pyxdg
44-
click
45-
46-
pytest
47-
mypy
48-
pylsp-mypy
49-
ruff-lsp
50-
]))
51-
];
39+
packages = with pkgs;
40+
[
41+
ruff
42+
(python3.withPackages (ps:
43+
with ps; [
44+
pytest
45+
mypy
46+
pylsp-mypy
47+
ruff-lsp
48+
]))
49+
]
50+
++ self.packages.x86_64-linux.default.propagatedBuildInputs;
5251
};
5352
formatter = treefmt.config.build.wrapper;
5453
checks.formatting = treefmt.config.build.check self;

0 commit comments

Comments
 (0)