postgres_migration/shell.nix

17 lines
312 B
Nix
Raw Normal View History

2021-02-05 20:14:43 +01:00
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [ python27 python27Packages.virtualenv ];
2021-02-05 20:14:43 +01:00
shellHook = ''
2021-02-10 01:26:54 +01:00
# Workaround to use pip
SOURCE_DATE_EPOCH=$(date +%s)
virtualenv .venv
export PATH=$PWD/.venv/bin:$PATH
pip install etlalchemy
pip install psycopg2
2021-02-05 20:14:43 +01:00
'';
}