mirror of
https://github.com/anotherhadi/nur-packages.git
synced 2026-10-05 11:18:25 +02:00
add jwt-tui, spilltea & usbguard-tui
Signed-off-by: Hadi <[email protected]>
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user