-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add a flake.nix for NixOS Flake users #2734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Khitboksy
wants to merge
16
commits into
pingdotgg:main
Choose a base branch
from
Khitboksy:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4fb69ad
Updated README.md to inclue NixFlake instructions
Khitboksy dfd8158
Added a Flake for building on NixOS machines using the flake option
Khitboksy 5f0bfef
Updated README.md to include the flake experimental feature toggle
Khitboksy 42cd21e
Fix build: allow networking, improve install phase
Khitboksy 9810cb0
Fix build: multi-platform support, add PATH wrapper, fail on empty ou…
Khitboksy c12b3c2
Fix: Linux only platforms, simplify AppImage output
Khitboksy 0fe280f
Fix: use pre-built AppImage to avoid network sandbox issues
Khitboksy 5a2ef68
Refactor: clean up flake with maintainer-friendly variables
Khitboksy 5f8bb45
corrected the instalation paths
Khitboksy 0d1b898
fix: stale t3code-src flake input
Khitboksy 2a1eb1e
updated to v0.0.24
Khitboksy 01f0ee6
updated to v0.0.24
Khitboksy 1bed46e
updated the sha
Khitboksy 91cd9fa
Simplified build logic and maintainer notes, and removed fluff comments
Khitboksy 09f2ab4
Updated installation instructions to include the updated package, and…
Khitboksy 911b652
Fixed override syntax
Khitboksy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| { | ||
|
macroscopeapp[bot] marked this conversation as resolved.
macroscopeapp[bot] marked this conversation as resolved.
|
||
| description = "T3 Code - A harness for coding agents"; | ||
|
|
||
| # ===== MAINTENANCE NOTES FOR MAINTAINERS ===== | ||
| # | ||
| # let | ||
| # releaseTag = "v0.0.24"; | ||
| # version = lib.removePrefix "v" releaseTag; | ||
| # appimageHash = "sha256-t8KYAtaQKWmCVOOwvHByosYoqb0Ji35Qe4m+8Gtp/+k="; | ||
| # in | ||
| # { | ||
| # . . . | ||
| # }; | ||
| # | ||
| # To update to a new release: | ||
| # 1. Update `releaseTag` to the new version (e.g., "v0.0.25") | ||
| # 2. Update `appimageHash`: | ||
| # nix-prefetch-url https://github.com/pingdotgg/t3code/releases/download/v0.0.25/T3-Code-0.0.25-x86_64.AppImage | ||
| # ============================================== | ||
|
|
||
| inputs = { | ||
| nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; | ||
| }; | ||
|
|
||
| outputs = | ||
| { self, nixpkgs }: | ||
| let | ||
| lib = nixpkgs.lib; | ||
|
|
||
| releaseTag = "v0.0.24"; | ||
| version = lib.removePrefix "v" releaseTag; | ||
| appimageHash = "sha256-t8KYAtaQKWmCVOOwvHByosYoqb0Ji35Qe4m+8Gtp/+k="; | ||
|
|
||
| supportedSystems = [ "x86_64-linux" ]; | ||
|
|
||
| pkgs = import nixpkgs { system = "x86_64-linux"; }; | ||
|
|
||
| appimage = pkgs.fetchurl { | ||
| url = "https://github.com/pingdotgg/t3code/releases/download/${releaseTag}/T3-Code-${version}-x86_64.AppImage"; | ||
| sha256 = appimageHash; | ||
| }; | ||
| in | ||
| { | ||
| packages.x86_64-linux = { | ||
| default = pkgs.stdenv.mkDerivation { | ||
| pname = "t3code"; | ||
| inherit version; | ||
|
|
||
| src = appimage; | ||
|
|
||
| dontStrip = true; | ||
| dontUnpack = true; | ||
|
|
||
| installPhase = '' | ||
| mkdir -p $out/bin | ||
| cp $src $out/bin/t3code.AppImage | ||
| chmod +x $out/bin/t3code.AppImage | ||
|
|
||
| cat > $out/bin/t3code << 'LAUNCHER' | ||
| #!/bin/sh | ||
| exec appimage-run "$(dirname "$0")/t3code.AppImage" "$@" | ||
| LAUNCHER | ||
| chmod +x $out/bin/t3code | ||
| ''; | ||
|
|
||
| meta = { | ||
| description = "T3 Code - A harness for coding agents"; | ||
| homepage = "https://t3.codes"; | ||
| license = lib.licenses.mit; | ||
| platforms = supportedSystems; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟢 Low
README.md:64The
configuration.nixexample includespkgs.appimage-run(line 65), which is unnecessary because the flake builds t3code natively without the AppImage wrapper. Users copying this verbatim will install an unused dependency. Consider removingpkgs.appimage-runfrom the example.🤖 Copy this AI Prompt to have your agent fix this: