1
0
mirror of https://github.com/foxlet/macOS-Simple-KVM.git synced 2024-06-02 06:03:31 +02:00

fetch.sh: provide dependencies using nix-shell if available

This commit is contained in:
Atemu 2020-08-05 14:57:33 +02:00
parent 2324d48c66
commit d5262e9747
2 changed files with 15 additions and 0 deletions

View File

@ -7,6 +7,12 @@ set +x;
SCRIPTDIR="$(dirname "$0")";
cd "$SCRIPTDIR"
if [ -x "$(command -v nix-shell)" ]; then
echo "Nix detected, using nix-shell for dependencies..."
nix-shell --pure --run "python fetch-macos.py $*"
exit
fi
initpip() {
if [ -x "$(command -v easy_install)" ]; then
sudo easy_install pip

View File

@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
propagatedBuildInputs = with pkgs.python3Packages; [
python
requests
click
];
}