From f6151d268e4a696f67ba29a7e532823884045c96 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 27 Aug 2026 23:29:08 +0200 Subject: [PATCH] add proton-vpn-tui Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- README.md | 1 + default.nix | 1 + flake.lock | 6 +++--- pkgs/proton-vpn-tui/default.nix | 29 +++++++++++++++++++++++++++++ 4 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 pkgs/proton-vpn-tui/default.nix diff --git a/README.md b/README.md index b426c5d..7bf14d5 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ | `gravatar-recon` | Retrieve and aggregate public OSINT data from Gravatar. Given an email address, the tool queries the Gravatar API and extracts useful information such as profile metadata, avatar, social accounts, and contact info. | [anotherhadi/gravatar-recon](https://github.com/anotherhadi/gravatar-recon) | 2025-09-25 | | `jwt-tui` | A TUI for inspecting, editing, and signing JSON Web Tokens (JWTs). | [anotherhadi/jwt-tui](https://github.com/anotherhadi/jwt-tui) | 2026-05-26 | | `monitui` | Delightfully minimal TUI for wrangling Hyprland monitors | [nathaniel-fargo/monitui](https://github.com/nathaniel-fargo/monitui) | 2026-03-14 | +| `proton-vpn-tui` | A minimal, TUI and keyboard friendly wrapper for proton-vpn-cli | [anotherhadi/proton-vpn-tui](https://github.com/anotherhadi/proton-vpn-tui) | 2026-08-27 | | `revshell` | CLI reverse shell generator | [Gubarz/revshell](https://github.com/Gubarz/revshell) | 2026-04-12 | | `settuings` | A TUI to manage your Linux system settings like wifi, bluetooth, and more, without leaving the terminal. | [anotherhadi/settuings](https://github.com/anotherhadi/settuings) | 2026-08-13 | | `spilltea` | A minimal, terminal-based HTTP(S) proxy for pentesters and CTF players. | [anotherhadi/spilltea](https://github.com/anotherhadi/spilltea) | 2026-05-30 | diff --git a/default.nix b/default.nix index c09405d..69fdf67 100644 --- a/default.nix +++ b/default.nix @@ -9,4 +9,5 @@ monitui = pkgs.callPackage ./pkgs/monitui {}; revshell = pkgs.callPackage ./pkgs/revshell {}; default-creds-tui = pkgs.callPackage ./pkgs/default-creds-tui {}; + proton-vpn-tui = pkgs.callPackage ./pkgs/proton-vpn-tui {}; } diff --git a/flake.lock b/flake.lock index 14e3cb3..c508296 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1780749050, - "narHash": "sha256-3av0pIjlOWQ6rDbNOmpUSvbNnJkGORQKKjb4LtCZsIY=", + "lastModified": 1787736819, + "narHash": "sha256-cV5xEJJK3BvhU8rEd4mC9UsmDi5qscv/kzGPhBRC5WA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a799d3e3886da994fa307f817a6bc705ae538eeb", + "rev": "9fbb54b33e91ee4ca368e35a78e0613c720600b3", "type": "github" }, "original": { diff --git a/pkgs/proton-vpn-tui/default.nix b/pkgs/proton-vpn-tui/default.nix new file mode 100644 index 0000000..bf2914a --- /dev/null +++ b/pkgs/proton-vpn-tui/default.nix @@ -0,0 +1,29 @@ +{ + lib, + buildGo126Module, + fetchFromGitHub, +}: +buildGo126Module rec { + pname = "proton-vpn-tui"; + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "anotherhadi"; + repo = "proton-vpn-tui"; + rev = "v${version}"; + hash = "sha256-vIxGjcBKDSO9vL+A6vsPFDM5L0X140B0qIwvh6HyiVI="; + }; + + vendorHash = "sha256-+mUN+uR0Amn0shSIVe0aQ6JDv395SyLA060cpOcGrb0="; + + ldflags = [ "-s" "-w" "-X main.version=${version}" ]; + + meta = with lib; { + description = "A minimal, TUI and keyboard friendly wrapper for proton-vpn-cli"; + homepage = "https://github.com/anotherhadi/proton-vpn-tui"; + license = licenses.mit; + platforms = platforms.unix; + maintainers = [ ]; + mainProgram = "proton-vpn-tui"; + }; +}