This repository has been archived on 2023-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
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}
'';
}