+import configparser
import filecmp
import functools
import hashlib
import os.path
import shutil
import subprocess
+import sys
import tempfile
import types
import urllib.parse
v.ok()
-def main() -> None:
+def main(argv: List[str]) -> None:
v = Verification()
- channel = Channel(url='https://channels.nixos.org/nixos-20.03',
- git_repo='https://github.com/NixOS/nixpkgs.git',
- git_ref='nixos-20.03')
+ config = configparser.ConfigParser()
+ config.read_file(open(argv[1]), argv[1])
+ channel = Channel(**dict(config['nixos'].items()))
fetch(v, channel)
parse_channel(v, channel)
fetch_resources(v, channel)
print(channel)
-main()
+main(sys.argv)