Revert "Convert maintainer file entries to attributes, add github handles"

This reverts commit aa47bac04f.
This commit is contained in:
Graham Christensen 2018-03-03 22:34:17 -05:00 committed by GitHub
parent f6e943fd40
commit b9f1a76f30
3 changed files with 804 additions and 3966 deletions

View File

@ -21,7 +21,7 @@ let
# packaging
customisation = callLibs ./customisation.nix;
maintainers = import ./maintainers.nix;
maintainers = callLibs ./maintainers.nix;
meta = callLibs ./meta.nix;
sources = callLibs ./sources.nix;

File diff suppressed because it is too large Load Diff

View File

@ -1,23 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p jq parallel
# Example how to work with the `lib.maintainers` attrset.
# Can be used to check whether all user handles are still valid.
set -e
# checks whether a user handle can be found on github
function checkUser {
local user="$1"
local status=
status="$(curl --silent --head "https://github.com/${user}" | grep Status)"
printf "%s\t\t\t\t%s\n" "$status" "$user"
}
export -f checkUser
# output the maintainers set as json
# and filter out the github username of each maintainer (if it exists)
# then check 100 at the same time
nix-instantiate -A lib.maintainers --eval --strict --json \
| jq -r '.[]|.github' \
| parallel -j100 checkUser