nixpkgs/pkgs/tools/security/jwt-hack/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
707 B
Nix
Raw Normal View History

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