diff --git a/run.sh b/run.sh index 1a9d77f..52f5bf6 100755 --- a/run.sh +++ b/run.sh @@ -1,11 +1,13 @@ #!/bin/sh NIXPKGS='' +NIX='' while getopts "f:" arg; do case ${arg} in f) NIXPKGS="${OPTARG}/maintainers/scripts/find-tarballs.nix" + NIX="${OPTARG}" shift shift ;; @@ -24,4 +26,4 @@ fi echo "DOWNLOADING SOURCES TO BUILD $@" > /dev/stderr mkdir -p "distfiles" -nix-instantiate --json --eval --strict "${NIXPKGS}" --arg expr "with import {}; [$*]" # | ./mirror.pl +nix-instantiate --json --eval --strict "${NIXPKGS}" --arg expr "with import ${NIX}{}; [$*]" # | ./mirror.pl