21 lines
429 B
Nix
21 lines
429 B
Nix
|
# shell.nix
|
||
|
{ pkgs ? import <nixpkgs> {} }:
|
||
|
let
|
||
|
my-python = pkgs.python3;
|
||
|
python-with-my-packages = my-python.withPackages (p: with p; [
|
||
|
icecream
|
||
|
# other python packages you want
|
||
|
]);
|
||
|
in
|
||
|
pkgs.mkShell {
|
||
|
buildInputs = [
|
||
|
python-with-my-packages
|
||
|
# other dependencies
|
||
|
];
|
||
|
shellHook = ''
|
||
|
PYTHONPATH=${python-with-my-packages}/${python-with-my-packages.sitePackages}
|
||
|
# maybe set more env-vars
|
||
|
'';
|
||
|
}
|
||
|
|