Skip to content

Commit

Permalink
working dev shell
Browse files Browse the repository at this point in the history
  • Loading branch information
fschn90 committed Feb 26, 2024
1 parent 87982d7 commit 1f58b9b
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions dev-shells/python.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# Nix expression that provides a "fish" shell with the
# specified Python packages. 'buildFHSUserEnv' provides
# access to the system libstdc library required by
# Python packages like iPython or Numpy
#
# Run with 'nix-shell python-shell.nix'
#
{pkgs ? import <nixpkgs> {}}:
(pkgs.buildFHSUserEnv {
name = "pipzone";
targetPkgs = kgs: (with pkgs; [
python311
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
nativeBuildInputs = with pkgs; [
zlib
python3
python311Packages.pip
python311Packages.virtualenv
python311Packages.spacy
]);
runScript = "fish";
}).env
];

shellHook = ''
export LD_LIBRARY_PATH="${pkgs.zlib}/lib"
'';
}

0 comments on commit 1f58b9b

Please sign in to comment.