nix-background-upgrade/shell.nix

16 lines
402 B
Nix
Raw Normal View History

{
pkgs ? import <nixpkgs> {},
mkPoetryEnv ? ((builtins.getFlake "github:nix-community/poetry2nix").lib.mkPoetry2Nix {inherit pkgs;}).mkPoetryEnv,
}:
pkgs.mkShellNoCC {
packages = with pkgs; [
(mkPoetryEnv {
projectDir = ./.;
preferWheels = true;
editablePackageSources = {nix_background_upgrade = ./src;};
extraPackages = ps: with ps; [mypy];
})
poetry
];
}