diff options
| author | Fuwn <[email protected]> | 2026-01-31 04:00:08 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-31 04:00:08 +0000 |
| commit | 9c44e9d609dc423c5ed8d4ccf1377b8403b7e65d (patch) | |
| tree | 4f9fad39a1d8df444c72f5a3ac097e80f25f42f7 | |
| parent | format: Apply Iku formatting (diff) | |
| download | faustus-9c44e9d609dc423c5ed8d4ccf1377b8403b7e65d.tar.xz faustus-9c44e9d609dc423c5ed8d4ccf1377b8403b7e65d.zip | |
feat: Add Nix flake support
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | flake.lock | 59 | ||||
| -rw-r--r-- | flake.nix | 50 | ||||
| -rw-r--r-- | go.mod | 2 |
4 files changed, 111 insertions, 1 deletions
@@ -2,3 +2,4 @@ faustus .task/ example-sessions .DS_Store +result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..c3c6fc9 --- /dev/null +++ b/flake.lock @@ -0,0 +1,59 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1769740369, + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6308c3b21396534d8aaeac46179c14c439a89b8a", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..9493eb0 --- /dev/null +++ b/flake.nix @@ -0,0 +1,50 @@ +{ + description = "A beautiful TUI for managing Claude Code sessions"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = + { + self, + nixpkgs, + flake-utils, + ... + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { inherit system; }; + version = self.shortRev or "dirty"; + in + { + packages.default = pkgs.buildGo125Module { + inherit version; + + pname = "faustus"; + src = pkgs.lib.cleanSource ./.; + vendorHash = "sha256-RNbS40G+8rtwlSJgYLN1puTCytGfXdagQTEs6sIXwnM="; + ldflags = [ + "-s" + "-w" + ]; + + meta = with pkgs.lib; { + description = "A beautiful TUI for managing Claude Code sessions"; + homepage = "https://github.com/Fuwn/faustus"; + license = [ + licenses.mit + licenses.asl20 + ]; + platforms = platforms.unix; + }; + }; + + devShells.default = pkgs.mkShell { + buildInputs = [ pkgs.go_1_24 ]; + }; + } + ); +} @@ -1,6 +1,6 @@ module github.com/Fuwn/faustus -go 1.24.3 +go 1.24.0 require ( github.com/charmbracelet/bubbles v0.21.0 |