2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2022-06-26 10:26:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "jwt-hack";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.2.0";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hahwul";
|
2024-06-05 15:53:02 +00:00
|
|
|
repo = "jwt-hack";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-IHR+ItI4ToINLpkVc7yrgpNTS17nD02G6x3pNMEfIW4=";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-YEH+epSvyy1j0s8AIJ5+BdF47H7KqgBRC4t81noOkjo=";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for attacking JWT";
|
|
|
|
homepage = "https://github.com/hahwul/jwt-hack";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/hahwul/jwt-hack/releases/tag/v${version}";
|
2022-06-26 10:26:21 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "jwt-hack";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
}
|