Skip to content

Add a Nix flake for source-based installs#209

Open
y0usaf wants to merge 1 commit intoschpet:mainfrom
y0usaf:nix-flake
Open

Add a Nix flake for source-based installs#209
y0usaf wants to merge 1 commit intoschpet:mainfrom
y0usaf:nix-flake

Conversation

@y0usaf
Copy link
Copy Markdown

@y0usaf y0usaf commented Apr 9, 2026

Summary

  • add a flake.nix + flake.lock for Nix users
  • package linear from 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 useTypeImports so the generated code does not try to import the typings-only @graphql-typed-document-node/core package at runtime

Notes

  • this uses aMOPel/deno2nix's custom-made-fetcher helper to materialize Deno/npm/jsr deps from deno.lock
  • the package is source-based, so updates only need the single denoDepsHash refreshed instead of per-platform asset hashes
  • verified with nix build path:.#linear and ./result/bin/linear --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant