mirror of
https://github.com/Ascyii/scripts.git
synced 2026-01-01 04:44:24 -05:00
15 lines
409 B
Bash
Executable File
15 lines
409 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd ~/projects/studCrawl
|
|
|
|
# List your dependencies here (space-separated, Nix/Nixpkgs attribute names)
|
|
PYTHON_DEPS="requests beautifulsoup4"
|
|
|
|
# Optional: set path to your main script
|
|
SCRIPT="src/just_update.py"
|
|
|
|
# Call nix-shell with your dependencies; -p means "with these packages in environment"
|
|
nix-shell -p "python3.withPackages (ps: with ps; [ $PYTHON_DEPS ])" --run "python3 $SCRIPT"
|