Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[ryantm@home1:~/p]$ cd nixpkgs-update-github-releases/
[ryantm@home1:~/p/nixpkgs-update-github-releases]$ ls
loadMetaFromPath.nix main.py
[ryantm@home1:~/p/nixpkgs-update-github-releases]$ ./main.py
these derivations will be built:
/nix/store/3mfkyds29036s600bqcg7iwsg8afi11z-python3-3.7.5-env.drv
building '/nix/store/3mfkyds29036s600bqcg7iwsg8afi11z-python3-3.7.5-env.drv'...
created 270 symlinks in user environment
unpacking 'https://github.com/nixos/nixpkgs/archive/master.tar.gz'...
error: cannot convert a function to JSON
Traceback (most recent call last):
File "./main.py", line 139, in <module>
main()
File "./main.py", line 133, in main
meta = loadVersions()
File "./main.py", line 35, in loadVersions
'--eval', '--json',
File "/nix/store/d89hv7fvmky59qqgzb1yiwagv34i1q75-python3-3.7.5/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/nix/store/d89hv7fvmky59qqgzb1yiwagv34i1q75-python3-3.7.5/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nix-instantiate', '/home/ryantm/p/nixpkgs-update-github-releases/loadMetaFromPath.nix', '--arg', 'url', 'https://github.com/nixos/nixpkgs/archive/master.tar.gz', '--eval', '--json']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.