test naive templates
This commit is contained in:
19
python/shell.nix
Normal file
19
python/shell.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
let
|
||||
my-python = pkgs.python310;
|
||||
python-with-packages = my-python.withPackages ( p: with p; [
|
||||
pip
|
||||
jedi-language-server
|
||||
]);
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
python-with-packages
|
||||
];
|
||||
shellHook=''
|
||||
export PIP_PREFIX=$(pwd)/_build/pip_packages
|
||||
export PYTHONPATH="$PIP_PREFIX/${pkgs.python3.sitePackages}:$PYTHONPATH"
|
||||
export PATH="$PIP_PREFIX/bin:$PATH"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user