From 26502786af9f7bc42a3c0b680c79aeb5eae1cbd3 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 19 Sep 2023 12:28:15 -0700 Subject: [PATCH] Expose python env as a package This allows building the env into the local workspace, making it easier to configure VS Code to point to it --- .gitignore | 1 + flake.nix | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 89f9ac0..1fe8d35 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ out/ +venv \ No newline at end of file diff --git a/flake.nix b/flake.nix index 4685c7d..3a8abbf 100644 --- a/flake.nix +++ b/flake.nix @@ -17,8 +17,13 @@ pyenv = pkgs.python3.withPackages (pypkgs: [ pypkgs.markdown pypkgs.beautifulsoup4 + pypkgs.feedgen ]); in { + packages.${system} = { + inherit pyenv; + }; + devShells.${system} = { default = pkgs.mkShell { packages = [