dbt-nix/shell.nix

24 lines
526 B
Nix
Raw Normal View History

2021-10-28 10:51:57 -04:00
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "pip-env";
buildInputs = [
# System requirements.
readline
2021-10-28 14:16:15 -04:00
git
2021-10-28 10:51:57 -04:00
# Python requirements (enough to get a virtualenv going).
2021-10-28 21:32:05 -04:00
python39Full
python39Packages.virtualenv
python39Packages.pip
python39Packages.setuptools
2021-10-28 10:51:57 -04:00
];
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
'';
}