add python

This commit is contained in:
Emil Lerch 2023-12-19 13:45:24 -08:00
parent c27db4082b
commit b1abfe98c2
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

23
python/flake.nix Normal file
View File

@ -0,0 +1,23 @@
{
description = "Good basic flake template";
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
systempkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = systempkgs.mkShell {
buildInputs = with systempkgs; [
python3
# This probably needs other stuff, like flake8
python311Packages.python-lsp-server
];
};
}
);
}