linear-cli
linear-cli copied to clipboard
Add a Nix flake for source-based installs
Summary
- add a
flake.nix+flake.lockfor Nix users - package
linearfrom source instead of pinning per-platform release binaries - run GraphQL codegen during the Nix build and install a wrapper that runs from the packaged source tree
- switch GraphQL codegen to
useTypeImportsso the generated code does not try to import the typings-only@graphql-typed-document-node/corepackage at runtime
Notes
- this uses
aMOPel/deno2nix'scustom-made-fetcherhelper to materialize Deno/npm/jsr deps fromdeno.lock - the package is source-based, so updates only need the single
denoDepsHashrefreshed instead of per-platform asset hashes - verified with
nix build path:.#linearand./result/bin/linear --version