housekeeping, update poetry and flake.nix
This commit is contained in:
29
flake.nix
Normal file
29
flake.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
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)
|
||||
# '';
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user