dotfiles/templates/python/shell.nix

15 lines
333 B
Nix
Raw Normal View History

2023-11-16 15:12:39 +01:00
{ pkgs ? import <nixpkgs> { } }:
let
poetry2nix = import (fetchTarball "https://github.com/nix-community/poetry2nix/archive/master.tar.gz") { };
project =
poetry2nix.mkPoetryApplication {
projectDir = ./.;
preferWheels = true;
};
in
2023-11-16 15:12:39 +01:00
pkgs.mkShell {
inputsFrom = [ project ];
packages = [ pkgs.poetry ];
2023-11-16 15:12:39 +01:00
}