infrastructure/app/backup/build/backup-psql/default.nix

17 lines
332 B
Nix
Raw Normal View History

2022-04-14 15:50:17 +00:00
{ pkgs ? import <nixpkgs> {} }:
let
python-with-my-packages = pkgs.python3.withPackages (p: with p; [
minio
]);
in
pkgs.mkShell {
buildInputs = [
python-with-my-packages
pkgs.age
pkgs.postgresql_14
];
shellHook = ''
PYTHONPATH=${python-with-my-packages}/${python-with-my-packages.sitePackages}
'';
}