aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix50
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 ];
+ };
+ }
+ );
+}