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 /flake.nix | |
| parent | format: Apply Iku formatting (diff) | |
| download | faustus-9c44e9d609dc423c5ed8d4ccf1377b8403b7e65d.tar.xz faustus-9c44e9d609dc423c5ed8d4ccf1377b8403b7e65d.zip | |
feat: Add Nix flake support
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 50 |
1 files changed, 50 insertions, 0 deletions
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 ]; + }; + } + ); +} |