aboutsummaryrefslogtreecommitdiff
path: root/app/backup/build
diff options
context:
space:
mode:
Diffstat (limited to 'app/backup/build')
-rw-r--r--app/backup/build/backup-psql/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/backup/build/backup-psql/default.nix b/app/backup/build/backup-psql/default.nix
index 1ded395..5d2dec7 100644
--- a/app/backup/build/backup-psql/default.nix
+++ b/app/backup/build/backup-psql/default.nix
@@ -17,17 +17,18 @@ in
buildPhase = ''
cat > backup-psql <<EOF
- #!${pkgs.bash}/bin/bash
- export PYTHONPATH=${python-with-my-packages}/${python-with-my-packages.sitePackages}
- python3 $out/lib/backup-psql.py
+ #!${pkgs.bash}/bin/bash
+ export PYTHONPATH=${python-with-my-packages}/${python-with-my-packages.sitePackages}
+ ${python-with-my-packages}/bin/python3 $out/lib/backup-psql.py
EOF
+
chmod +x backup-psql
'';
installPhase = ''
mkdir -p $out/{bin,lib}
cp *.py $out/lib/backup-psql.py
- cp backup-psql $out/bin/backup-sql
+ cp backup-psql $out/bin/backup-psql
'';
}