nixos/shell.nix

25 lines
498 B
Nix
Raw Normal View History

2024-02-02 13:45:05 +01:00
{
pkgs ? import <nixpkgs> { },
}:
2022-01-03 20:00:40 +01:00
pkgs.mkShell {
name = "nixosbuildshell";
nativeBuildInputs = with pkgs; [
git
nixFlakes
python310
python310Packages.black
python310Packages.mypy
2023-07-22 14:27:04 +02:00
python310Packages.pylint
qtile
2024-01-10 21:10:54 +01:00
python310Packages.python-lsp-server
2023-06-12 15:22:45 +02:00
vim
2022-01-03 20:00:40 +01:00
];
shellHook = ''
2024-02-02 13:45:05 +01:00
PATH=${pkgs.writeShellScriptBin "nix" ''
${pkgs.nixFlakes}/bin/nix --experimental-features "nix-command flakes" "$@"
''}/bin:$PATH
export DEVENV_ROOT=$(pwd)
2022-01-03 20:00:40 +01:00
'';
}