From b1abfe98c27ad6cf4ad079c8e3ab31535a5ebf4b Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 19 Dec 2023 13:45:24 -0800 Subject: [PATCH] add python --- python/flake.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 python/flake.nix diff --git a/python/flake.nix b/python/flake.nix new file mode 100644 index 0000000..9ce9613 --- /dev/null +++ b/python/flake.nix @@ -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 + ]; + }; + } + ); +}