Skip to content

Instantly share code, notes, and snippets.

@ryantm
Created January 15, 2020 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryantm/bf88b89f7eac126710a208b898b4d25f to your computer and use it in GitHub Desktop.
Save ryantm/bf88b89f7eac126710a208b898b4d25f to your computer and use it in GitHub Desktop.
[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