You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
464 B

  1. #!/bin/sh -e
  2. if [ "$1" = "" ]
  3. then
  4. echo "Please select a package set: 'packages', 'addons', 'system-images'" >&2
  5. exit 1
  6. fi
  7. if [ "$2" = "" ]
  8. then
  9. echo "Please select a package group:" >&2
  10. ( cat <<EOF
  11. builtins.attrNames (import ./generated/$1.nix {
  12. fetchurl = null;
  13. })
  14. EOF
  15. ) | nix-instantiate --eval-only -
  16. exit 1
  17. fi
  18. ( cat <<EOF
  19. builtins.attrNames (import ./generated/$1.nix {
  20. fetchurl = null;
  21. }).$2
  22. EOF
  23. ) | nix-instantiate --eval-only -