nixpkgs should be the one provided in the command line
This commit is contained in:
parent
bf5b27e9c0
commit
c6258630dd
4
run.sh
4
run.sh
|
@ -1,11 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
NIXPKGS='<nixpkgs/maintainers/scripts/find-tarballs.nix>'
|
NIXPKGS='<nixpkgs/maintainers/scripts/find-tarballs.nix>'
|
||||||
|
NIX='<nixpkgs>'
|
||||||
|
|
||||||
while getopts "f:" arg; do
|
while getopts "f:" arg; do
|
||||||
case ${arg} in
|
case ${arg} in
|
||||||
f)
|
f)
|
||||||
NIXPKGS="${OPTARG}/maintainers/scripts/find-tarballs.nix"
|
NIXPKGS="${OPTARG}/maintainers/scripts/find-tarballs.nix"
|
||||||
|
NIX="${OPTARG}"
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
@ -24,4 +26,4 @@ fi
|
||||||
|
|
||||||
echo "DOWNLOADING SOURCES TO BUILD $@" > /dev/stderr
|
echo "DOWNLOADING SOURCES TO BUILD $@" > /dev/stderr
|
||||||
mkdir -p "distfiles"
|
mkdir -p "distfiles"
|
||||||
nix-instantiate --json --eval --strict "${NIXPKGS}" --arg expr "with import <nixpkgs>{}; [$*]" # | ./mirror.pl
|
nix-instantiate --json --eval --strict "${NIXPKGS}" --arg expr "with import ${NIX}{}; [$*]" # | ./mirror.pl
|
||||||
|
|
Loading…
Reference in New Issue