add jwt-tui, spilltea & usbguard-tui

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-06-08 14:11:22 +02:00
parent 57d776e045
commit 4fbd5d965e
5 changed files with 103 additions and 3 deletions
+29
View File
@@ -0,0 +1,29 @@
{
lib,
buildGo126Module,
fetchFromGitHub,
}:
buildGo126Module rec {
pname = "jwt-tui";
version = "0.1.0";
src = fetchFromGitHub {
owner = "anotherhadi";
repo = "jwt-tui";
rev = "v${version}";
hash = "sha256-DqoRRKGk7rj1kP62R1gmOFAijxTaOu1k7hv1BaXlGVM=";
};
vendorHash = "sha256-rh/iQ5aDSDFv8wvb7bzcxcyX8Pfab+90NVzHs/xRH+I=";
ldflags = ["-s" "-w" "-X main.version=${version}"];
meta = with lib; {
description = "A TUI for inspecting, editing, and signing JSON Web Tokens (JWTs).";
homepage = "https://github.com/anotherhadi/jwt-tui";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [];
mainProgram = "jwt-tui";
};
}
+39
View File
@@ -0,0 +1,39 @@
{
lib,
buildGo126Module,
fetchFromGitHub,
installShellFiles,
}:
buildGo126Module rec {
pname = "spilltea";
version = "0.0.8";
src = fetchFromGitHub {
owner = "anotherhadi";
repo = "spilltea";
rev = "v${version}";
hash = "sha256-xOJ+VvrdPRyNJBVo+1Sd1tvw++OWbBN59uWI3Tc/hCY=";
};
vendorHash = "sha256-Mz5TLKcQKk9cuPNOpMl6hgaODKlaw137B00e3M6fgwM=";
ldflags = ["-s" "-w" "-X main.version=${version}"];
nativeBuildInputs = [installShellFiles];
postInstall = ''
installShellCompletion --cmd spilltea \
--bash <($out/bin/spilltea completion bash) \
--zsh <($out/bin/spilltea completion zsh) \
--fish <($out/bin/spilltea completion fish)
'';
meta = with lib; {
description = "A minimal, terminal-based HTTP(S) proxy for pentesters and CTF players.";
homepage = "https://github.com/anotherhadi/spilltea";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [];
mainProgram = "spilltea";
};
}
+29
View File
@@ -0,0 +1,29 @@
{
lib,
buildGo126Module,
fetchFromGitHub,
}:
buildGo126Module rec {
pname = "usbguard-tui";
version = "1.1.0";
src = fetchFromGitHub {
owner = "anotherhadi";
repo = "usbguard-tui";
rev = "v${version}";
hash = "sha256-m4Bg2uy9WqYHaTod/dJfFUHCAXDwg6+4GLXGUIAid5Q=";
};
vendorHash = "sha256-tXMeJy9IpXTRhikYedcL+76H9X3In9mb1/KnN1XFPu4=";
ldflags = ["-s" "-w" "-X main.version=${version}"];
meta = with lib; {
description = "A terminal UI for managing USB devices via usbguard.";
homepage = "https://github.com/anotherhadi/usbguard-tui";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [];
mainProgram = "usbguard-tui";
};
}