poetry2nix/shell.nix
Victor Engmark c57a16f773 chore: Remove Python 2 compatibility
From the build:

> Package ‘python-2.7.18.6’ in
> /nix/store/n5hj62lgkwvz3gqnp4l4nxzjnadh7y54-source/pkgs/development/interpreters/python/cpython/2.7/default.nix:330
> is marked as insecure, refusing to evaluate.

and

> Python 2.7 has reached its end of life after 2020-01-01. See
> https://www.python.org/doc/sunset-python-2/.

Necessary to bump nixpkgs
<https://github.com/nix-community/poetry2nix/pull/996>.
2023-02-27 13:16:42 +13:00

29 lines
534 B
Nix

{ packages ? pkgs: [
pkgs.p2nix-tools.env
pkgs.p2nix-tools.flamegraph
pkgs.nixpkgs-fmt
pkgs.poetry
pkgs.niv
pkgs.jq
pkgs.nix-prefetch-git
pkgs.nix-eval-jobs
pkgs.nix-build-uncached
]
}:
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {
overlays = [
(import ./overlay.nix)
(self: super: {
p2nix-tools = self.callPackage ./tools { };
})
];
};
in
pkgs.mkShell {
NIX_PATH = "nixpkgs=${sources.nixpkgs}";
packages = packages pkgs;
}