Skip to content

Commit 2ed8f4e

Browse files
committed
nix: add dev shell with all optional dependencies
This will be useful when we start to use type checking as it might need further optional dependencies.
1 parent 7f8aae7 commit 2ed8f4e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

flake.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,15 @@
5353
self.packages.${system}.alot.doc;
5454
default = self.packages.${system}.alot;
5555
});
56+
devShells = eachSystem (system: let
57+
pkgs = nixpkgs.legacyPackages.${system};
58+
arg = project.renderers.withPackages {
59+
python = pkgs.python3.override {inherit packageOverrides;};
60+
extras = builtins.attrNames project.dependencies.extras;
61+
};
62+
pythonEnv = pkgs.python3.withPackages arg;
63+
in {
64+
default = pkgs.mkShell {packages = [pythonEnv];};
65+
});
5666
};
5767
}

0 commit comments

Comments
 (0)