mirror of
https://github.com/zaphar/dbt-nix.git
synced 2025-07-21 19:40:31 -04:00
22 lines
486 B
Nix
22 lines
486 B
Nix
with import <nixpkgs> {};
|
|
|
|
stdenv.mkDerivation {
|
|
name = "pip-env";
|
|
buildInputs = [
|
|
# System requirements.
|
|
readline
|
|
|
|
# Python requirements (enough to get a virtualenv going).
|
|
python38Full
|
|
python38Packages.virtualenv
|
|
python38Packages.pip
|
|
];
|
|
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
|
|
'';
|
|
} |