From c6258630dd1686ae005a70bfb82dc15633033151 Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Wed, 31 Aug 2022 17:37:26 +0200 Subject: [PATCH] nixpkgs should be the one provided in the command line --- run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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