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.
This commit is contained in:
11
flake.nix
11
flake.nix
@@ -18,10 +18,11 @@
|
|||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
name = "python-venv";
|
name = "python-venv";
|
||||||
venvDir = "./.venv";
|
venvDir = "./.venv";
|
||||||
buildInputs = [
|
buildInputs = with pythonPackages; [
|
||||||
pythonPackages.python
|
python
|
||||||
pythonPackages.venvShellHook
|
venvShellHook
|
||||||
pythonPackages.numpy
|
scipy
|
||||||
|
numpy
|
||||||
];
|
];
|
||||||
|
|
||||||
postVenvCreation = ''
|
postVenvCreation = ''
|
||||||
@@ -35,4 +36,4 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user