Skip to content

Instantly share code, notes, and snippets.

@Sigmanificient
Last active April 28, 2024 13:25
Show Gist options
  • Save Sigmanificient/bc8268250bd83e6cff2124c8f9e053fc to your computer and use it in GitHub Desktop.
Save Sigmanificient/bc8268250bd83e6cff2124c8f9e053fc to your computer and use it in GitHub Desktop.
Retrieve a json listing main information about packages that have no maintainers
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq brotli
url="https://channels.nixos.org/nixpkgs-unstable/packages.json.br"
curl -L "$url" \
| brotli -d --stdout \
| jq '.packages[] | select(.meta.maintainers == []) | {
"pname": .pname,
"system": .system,
"version": .version,
"description": .meta.description,
}' > no_maintainer.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment