basant/shell.nix
2022-02-26 22:24:15 +10:00

27 lines
549 B
Nix

# shell.nix
{ pkgs ? import <nixpkgs> {} }:
let
my-python = pkgs.python3;
python-with-my-packages = my-python.withPackages (p: with p; [
icecream
python-ctags3
jinja2
click
pypandoc
# other python packages you want
]);
in
pkgs.mkShell {
buildInputs = [
python-with-my-packages
pkgs.pandoc
# other dependencies
];
shellHook = ''
PYTHONPATH=${python-with-my-packages}/${python-with-my-packages.sitePackages}
alias build='python3 src/kitaab-public/main.py'
# maybe set more env-vars
'';
}