From 9c44e9d609dc423c5ed8d4ccf1377b8403b7e65d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 31 Jan 2026 04:00:08 +0000 Subject: feat: Add Nix flake support --- flake.nix | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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 ]; + }; + } + ); +} -- cgit v1.2.3