{"id":21731680,"url":"https://github.com/marcuswhybrow/flake-updates","last_synced_at":"2025-03-20T23:42:54.013Z","repository":{"id":209866102,"uuid":"725134837","full_name":"marcuswhybrow/flake-updates","owner":"marcuswhybrow","description":"Displays time delta between a flake's nixpkgs input commit and the latest GitHub commit","archived":false,"fork":false,"pushed_at":"2024-12-09T18:58:18.000Z","size":72,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-25T20:26:34.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcuswhybrow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-29T14:08:14.000Z","updated_at":"2025-01-12T16:51:24.000Z","dependencies_parsed_at":"2024-12-09T19:32:32.909Z","dependency_job_id":"7fe30414-6480-45f3-915f-344c20c32925","html_url":"https://github.com/marcuswhybrow/flake-updates","commit_stats":null,"previous_names":["marcuswhybrow/nixpkgs-updates"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuswhybrow%2Fflake-updates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuswhybrow%2Fflake-updates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuswhybrow%2Fflake-updates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuswhybrow%2Fflake-updates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcuswhybrow","download_url":"https://codeload.github.com/marcuswhybrow/flake-updates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244711938,"owners_count":20497417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T04:27:06.447Z","updated_at":"2025-03-20T23:42:53.984Z","avatar_url":"https://github.com/marcuswhybrow.png","language":"Nix","readme":"```\nnix run github:marcuswhybrow/flake-updates -- --flake /path/to/flake-dir\n```\n\n```\n❯ flake-updates --help\nUsage: flake-updates [OPTIONS]\n\nOptions:\n  -f, --flake \u003cFLAKE\u003e    Path to a nix flake.lock file, or it's parent directory [default: .]\n  -t, --ttl \u003cTTL\u003e        The \"Time To Live\" of cached GitHub API requests before being considered stale. Caching GitHub API requests avoids rate limiting denials at the cost of data freshness [default: 60] [aliases: poll] [short aliases: p]\n  -o, --output \u003cOUTPUT\u003e  Output string format (\"%s is replaced with the number of updates\")\n  -d, --defer            Immediately return any currently cached data regardless of --ttl, and asynchronously consider regenerating the cache as a background task\n  -h, --help             Print help\n  -V, --version          Print version\n```\n\nWorks great for a custom [Waybar](https://github.com/Alexays/Waybar) module:\n\n```\n{\n    \"custom/updates\": {\n        \"exec\": \"flake-updates --flake /path/to/flake-dir --output '%s updates'\",\n        \"interval\": 1\n    }\n}\n```\n\n- Makes 1 GitHub API call per input by default.\n- `flake-updates --help` for more options.\n- Top tip, `flake-updates --ttl 0` busts the cache and always calls GitHub.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuswhybrow%2Fflake-updates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcuswhybrow%2Fflake-updates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuswhybrow%2Fflake-updates/lists"}