dbt-nix/shell.nix
2021-10-28 21:39:56 -04:00

24 lines
526 B
Nix

with import <nixpkgs> {};
stdenv.mkDerivation {
name = "pip-env";
buildInputs = [
# System requirements.
readline
git
# Python requirements (enough to get a virtualenv going).
python39Full
python39Packages.virtualenv
python39Packages.pip
python39Packages.setuptools
];
src = null;
shellHook = ''
# Allow the use of wheels.
SOURCE_DATE_EPOCH=$(date +%s)
# Augment the dynamic linker path
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R}/lib/R/lib:${readline}/lib
'';
}