30 lines
674 B
Nix
30 lines
674 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, ... }:
|
|
flake-utils.lib.eachDefaultSystem(system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in rec {
|
|
devShell = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
poetry
|
|
(python3.withPackages (ps:
|
|
with ps; [
|
|
black
|
|
isort
|
|
pylint
|
|
bandit
|
|
]))
|
|
bashInteractive
|
|
];
|
|
# shellHook = ''
|
|
# PYTHONPATH=$PYTHONPATH:$(pwd)
|
|
# '';
|
|
};
|
|
});
|
|
}
|