jwt-hack: 1.2.0 -> 2.0.0 (#415003)

This commit is contained in:
Fabian Affolter 2025-06-09 08:50:56 +02:00 committed by GitHub
commit 599163c2f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1311 additions and 11 deletions

1299
pkgs/by-name/jw/jwt-hack/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,31 +1,32 @@
{ {
lib, lib,
buildGoModule, rustPlatform,
fetchFromGitHub, fetchFromGitHub,
}: }:
buildGoModule rec { rustPlatform.buildRustPackage rec {
pname = "jwt-hack"; pname = "jwt-hack";
version = "1.2.0"; version = "2.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hahwul"; owner = "hahwul";
repo = "jwt-hack"; repo = "jwt-hack";
tag = "v${version}"; tag = "v${version}";
hash = "sha256-IHR+ItI4ToINLpkVc7yrgpNTS17nD02G6x3pNMEfIW4="; hash = "sha256-uJur/ABoAaQT3BBO2yprK/0/bQPT138Yg9IbztZ6w2w=";
}; };
vendorHash = "sha256-YEH+epSvyy1j0s8AIJ5+BdF47H7KqgBRC4t81noOkjo="; cargoLock = {
lockFile = ./Cargo.lock;
};
ldflags = [ postPatch = ''
"-w" ln -s ${./Cargo.lock} Cargo.lock
"-s" '';
];
meta = { meta = {
description = "Tool for attacking JWT"; description = "JSON Web Token Hack Toolkit";
homepage = "https://github.com/hahwul/jwt-hack"; homepage = "https://github.com/hahwul/jwt-hack";
changelog = "https://github.com/hahwul/jwt-hack/releases/tag/v${version}"; changelog = "https://github.com/hahwul/jwt-hack/releases/tag/${src.tag}";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ]; maintainers = with lib.maintainers; [ fab ];
mainProgram = "jwt-hack"; mainProgram = "jwt-hack";