aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--flake.lock59
-rw-r--r--flake.nix50
-rw-r--r--go.mod2
4 files changed, 111 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index f7b6f68..b84ac98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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 ];
+ };
+ }
+ );
+}
diff --git a/go.mod b/go.mod
index 28dac66..e885a6c 100644
--- a/go.mod
+++ b/go.mod
@@ -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