From 6c024107ee61d7b8426f58177ebc30516ec358b7 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:47:38 -0400 Subject: [PATCH] add stu s3 tui browser --- flake.lock | 17 +++++++++++++++++ flake.nix | 7 +++++++ modules/darwin/utilities.nix | 1 + overlays/stu.nix | 17 +++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 overlays/stu.nix diff --git a/flake.lock b/flake.lock index 65ef162..b1ce773 100644 --- a/flake.lock +++ b/flake.lock @@ -603,6 +603,7 @@ "nvim-treesitter-src": "nvim-treesitter-src", "ren": "ren", "rep": "rep", + "stu": "stu", "telescope-nvim-src": "telescope-nvim-src", "telescope-project-nvim-src": "telescope-project-nvim-src", "toggleterm-nvim-src": "toggleterm-nvim-src", @@ -618,6 +619,22 @@ "zenyd-mpv-scripts": "zenyd-mpv-scripts" } }, + "stu": { + "flake": false, + "locked": { + "lastModified": 1720424134, + "narHash": "sha256-c6nLQOhwztwnUfKLx69Le9pCHE0GtruqKMnvYpGyr+0=", + "owner": "lusingander", + "repo": "stu", + "rev": "279edc8d63c04b42773434bf8c6f2744a66d71a8", + "type": "github" + }, + "original": { + "owner": "lusingander", + "repo": "stu", + "type": "github" + } + }, "systems": { "locked": { "lastModified": 1681028828, diff --git a/flake.nix b/flake.nix index 7182d56..325de73 100644 --- a/flake.nix +++ b/flake.nix @@ -178,6 +178,12 @@ flake = false; }; + # Stu - TUI for S3 + stu = { + url = "github:lusingander/stu"; + flake = false; + }; + # Nextcloud Apps nextcloud-news = { # https://github.com/nextcloud/news/releases @@ -253,6 +259,7 @@ (import ./overlays/betterlockscreen.nix) (import ./overlays/gh-collaborators.nix) (import ./overlays/ren-rep.nix inputs) + (import ./overlays/stu.nix inputs) ]; # System types to support. diff --git a/modules/darwin/utilities.nix b/modules/darwin/utilities.nix index 852827f..1787c62 100644 --- a/modules/darwin/utilities.nix +++ b/modules/darwin/utilities.nix @@ -27,6 +27,7 @@ pkgs.awscli2 pkgs.ssm-session-manager-plugin pkgs.awslogs + pkgs.stu # TUI for AWS S3 pkgs.google-cloud-sdk pkgs.vault-bin pkgs.consul diff --git a/overlays/stu.nix b/overlays/stu.nix new file mode 100644 index 0000000..fe40716 --- /dev/null +++ b/overlays/stu.nix @@ -0,0 +1,17 @@ +inputs: _final: prev: { + + stu = prev.rustPlatform.buildRustPackage { + pname = "stu"; + version = "0.5.0"; + src = inputs.stu; + cargoHash = "sha256-gUolS7HXkTddxDWDGir4YC+2tJjgB/CCQC49SSRaR6U="; + buildInputs = + if prev.stdenv.isDarwin then + [ + prev.darwin.apple_sdk.frameworks.CoreGraphics + prev.darwin.apple_sdk.frameworks.AppKit + ] + else + [ ]; + }; +}