Skip to content

Instantly share code, notes, and snippets.

@ryantm
Created August 4, 2018 03:48
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/38b6b137ffb876ed477e5e97bd20baa4 to your computer and use it in GitHub Desktop.
Save ryantm/38b6b137ffb876ed477e5e97bd20baa4 to your computer and use it in GitHub Desktop.
[ryantm@home1:~/p/nixos-homepage]$ nix-shell
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs' does not exist, ignoring
warning: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:9; will use bash from your environment
[nix-shell:~/p/nixos-homepage]$ make nixpkgs/packages-unstable.json
nixpkgs=$(nix-instantiate --find-file nixpkgs -I nixpkgs=https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz); \
(echo -n '{ "commit": "' && cat $nixpkgs/.git-revision && echo -n '","packages":' \
&& nix-env --show-trace -f '<nixpkgs>' -I nixpkgs=https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz -qa --json --arg config 'import ./discover-more-packages-config.nix' \
&& echo -n '}') \
| sed "s|$nixpkgs/||g" > nixpkgs/packages-unstable.json.tmp
error: 'mkHomepage' at /nix/store/kzah1l6dcmc0ci49bk2cpa0b2pjhi4m8-nixexprs.tar.xz/pkgs/development/r-modules/default.nix:54:18 called with unexpected argument 'biocVersion', at /nix/store/k\
zah1l6dcmc0ci49bk2cpa0b2pjhi4m8-nixexprs.tar.xz/pkgs/development/r-modules/default.nix:35:21
python -mjson.tool < nixpkgs/packages-unstable.json.tmp > /dev/null
No JSON object could be decoded
make: *** [Makefile:226: nixpkgs/packages-unstable.json] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment