From 9d74e28e1b054b0be3dcf804538df9293c5a0717 Mon Sep 17 00:00:00 2001 From: undefined Date: Fri, 4 Apr 2025 16:41:36 +0100 Subject: [PATCH] flake: add scipy to dependencies scipy relies on libstdc++.so and cannot be used directly with venv in nix environment. adding it to buildInputs solves this issue. --- flake.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 404f7555c..23b82bb77 100644 --- a/flake.nix +++ b/flake.nix @@ -18,10 +18,11 @@ devShells.default = pkgs.mkShell { name = "python-venv"; venvDir = "./.venv"; - buildInputs = [ - pythonPackages.python - pythonPackages.venvShellHook - pythonPackages.numpy + buildInputs = with pythonPackages; [ + python + venvShellHook + scipy + numpy ]; postVenvCreation = '' @@ -35,4 +36,4 @@ ''; }; }); -} \ No newline at end of file +}