nix-flake-examples/python/flake.nix

24 lines
616 B
Nix
Raw Normal View History

2023-12-19 21:45:24 +00:00
{
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
];
};
}
);
}