naitokosuke · dotfiles

Version tracker for CLI tools not available in nixpkgs (issue #342). Each entry names an upstream to watch and an artifact to fetch; the derivations in pkgs/ read the result as sources.<tool>. Regenerate pkgs/_sources/generated.nix after editing: nix run --inputs-from . nixpkgs#nvfetcher -- -o pkgs/_sources That file is committed on purpose: evaluation is pure, so the pinned hashes must exist in-tree, and its diff in an update PR is the version bump.

Packaged here

Evaluated from the flake's packages output.

PackageVersionDescription
cclens0.4.0Lens onto your Claude Code usage: finds wasted time, tokens and effort in transcripts and config
frog1.1.0Automated friction logging for agents
fxtwitter2.1.0Typed wrapper and CLI for the FxTwitter API
gh-sub-issue0.5.1gh extension for creating and listing GitHub sub-issues
playwright-cli0.1.24Playwright CLI for browser automation
vite-plus1.6.0Unified toolchain for JavaScript

gh-sub-issue

src.github watches the upstream releases and fetch.url downloads one asset for the tag, with $ver substituted. The asset name embeds the version without the "v" tag prefix, so it is stripped here instead of in the derivation, and the URL re-adds it.

lines 14–17
14
15
16
17[gh-sub-issue]
src.github = "yahsan2/gh-sub-issue"
src.prefix = "v"
fetch.url = "https://github.com/yahsan2/gh-sub-issue/releases/download/v$ver/gh-sub-issue_$ver_darwin-arm64"

vite-plus

vp is only the Rust launcher; the JavaScript toolchain it delegates to is built from pkgs/vite-plus-runtime (issue #413). The release assets carry the launcher alone, so it is taken from npm instead, where both halves are published under the same version. The tag prefix is stripped so $ver matches that npm version.

lines 25–28
25
26
27
28[vite-plus]
src.github = "voidzero-dev/vite-plus"
src.prefix = "v"
fetch.url = "https://registry.npmjs.org/@voidzero-dev/vite-plus-cli-darwin-arm64/-/vite-plus-cli-darwin-arm64-$ver.tgz"

playwright-cli

npm-only distribution (no release binaries), so this is built from source with buildNpmPackage. Dependencies come from the upstream package-lock.json via importNpmLock, so a version bump needs no extra manual step. extract copies the lockfile into pkgs/_sources, so evaluation does not have to fetch the source to read it (#546).

lines 36–39
36
37
38
39[playwright-cli]
src.github = "microsoft/playwright-cli"
fetch.github = "microsoft/playwright-cli"
extract = ["package.json", "package-lock.json"]

frog

Release tags carry an npm-style "frog@" prefix, stripped here so $ver is the bare version. The release asset is a gzipped single binary.

lines 44–47
44
45
46
47[frog]
src.github = "wevm/frog"
src.prefix = "frog@"
fetch.url = "https://github.com/wevm/frog/releases/download/frog@$ver/frog-darwin-arm64.gz"

cclens

The tags carry no prefix, so $ver is used as-is in the asset name.

lines 51–53
51
52
53[cclens]
src.github = "lambdalisue/cclens"
fetch.url = "https://github.com/lambdalisue/cclens/releases/download/$ver/cclens-$ver-aarch64-apple-darwin.tar.gz"

fxtwitter

npm-only distribution, so this is built from source like playwright-cli. The package builds dist/ with tsdown, a devDependency, so the whole upstream lockfile is extracted.

lines 59–62
59
60
61
62[fxtwitter]
src.github = "otnc/fxtwitter-wrapper"
fetch.github = "otnc/fxtwitter-wrapper"
extract = ["package.json", "package-lock.json"]
View the complete file63 lines · nvfetcher.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63# Version tracker for CLI tools not available in nixpkgs (issue #342). Each
# entry names an upstream to watch and an artifact to fetch; the derivations
# in pkgs/ read the result as `sources.<tool>`. Regenerate
# pkgs/_sources/generated.nix after editing:
#   nix run --inputs-from . nixpkgs#nvfetcher -- -o pkgs/_sources
# That file is committed on purpose: evaluation is pure, so the pinned hashes
# must exist in-tree, and its diff in an update PR is the version bump.

## gh-sub-issue
# `src.github` watches the upstream releases and `fetch.url` downloads one
# asset for the tag, with `$ver` substituted. The asset name embeds the
# version without the "v" tag prefix, so it is stripped here instead of in the
# derivation, and the URL re-adds it.
[gh-sub-issue]
src.github = "yahsan2/gh-sub-issue"
src.prefix = "v"
fetch.url = "https://github.com/yahsan2/gh-sub-issue/releases/download/v$ver/gh-sub-issue_$ver_darwin-arm64"

## vite-plus
# `vp` is only the Rust launcher; the JavaScript toolchain it delegates to is
# built from pkgs/vite-plus-runtime (issue #413). The release assets carry the
# launcher alone, so it is taken from npm instead, where both halves are
# published under the same version. The tag prefix is stripped so $ver matches
# that npm version.
[vite-plus]
src.github = "voidzero-dev/vite-plus"
src.prefix = "v"
fetch.url = "https://registry.npmjs.org/@voidzero-dev/vite-plus-cli-darwin-arm64/-/vite-plus-cli-darwin-arm64-$ver.tgz"

## playwright-cli
# npm-only distribution (no release binaries), so this is built from source
# with buildNpmPackage. Dependencies come from the upstream package-lock.json
# via importNpmLock, so a version bump needs no extra manual step. `extract`
# copies the lockfile into pkgs/_sources, so evaluation does not have to fetch
# the source to read it (#546).
[playwright-cli]
src.github = "microsoft/playwright-cli"
fetch.github = "microsoft/playwright-cli"
extract = ["package.json", "package-lock.json"]

## frog
# Release tags carry an npm-style "frog@" prefix, stripped here so $ver is
# the bare version. The release asset is a gzipped single binary.
[frog]
src.github = "wevm/frog"
src.prefix = "frog@"
fetch.url = "https://github.com/wevm/frog/releases/download/frog@$ver/frog-darwin-arm64.gz"

## cclens
# The tags carry no prefix, so $ver is used as-is in the asset name.
[cclens]
src.github = "lambdalisue/cclens"
fetch.url = "https://github.com/lambdalisue/cclens/releases/download/$ver/cclens-$ver-aarch64-apple-darwin.tar.gz"

## fxtwitter
# npm-only distribution, so this is built from source like playwright-cli.
# The package builds dist/ with tsdown, a devDependency, so the whole upstream
# lockfile is extracted.
[fxtwitter]
src.github = "otnc/fxtwitter-wrapper"
fetch.github = "otnc/fxtwitter-wrapper"
extract = ["package.json", "package-lock.json"]
63 lines·2,833 chars·TOML