nixos/shell.nix

22 lines
483 B
Nix
Raw Normal View History

2022-01-03 20:00:40 +01:00
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
name = "nixosbuildshell";
nativeBuildInputs = with pkgs; [
git
nixFlakes
2022-01-04 21:52:27 +01:00
python3
2022-03-18 18:06:59 +01:00
python39Packages.autopep8
python39Packages.black
python39Packages.flake8
python39Packages.jedi
python39Packages.pip
python39Packages.yapf
2022-01-03 20:00:40 +01:00
];
shellHook = ''
PATH=${pkgs.writeShellScriptBin "nix" ''
${pkgs.nixFlakes}/bin/nix --experimental-features "nix-command flakes" "$@"
''}/bin:$PATH
'';
}