In the source tree of my system/home flake I thought to be smart and wanted to spawn a dev shell with direnv pointing to the following shell.nix
:
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
name = "qtile-dev-shell";
# just take the list from https://github.com/NixOS/nixpkgs/blob/f42a45c015f28ac3beeb0df360e50cdbf495d44b/pkgs/applications/window-managers/qtile/default.nix#L49
buildInputs = with pkgs.qtile; propagatedBuildInputs ++ buildInputs ++ nativeBuildInputs;
}
with the (naive?) expectation that the python
in this shell would have everything I need (including references to the correct site-packages
picked up by pylance
).
But this doesn’t seem to be the case. Is there a trivial/idiomatic way to get a dev shell that gets me the correct env for a qtile
config?