Unverified Commit 599163c2 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

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

parents ed2f18fd e38a23bc
Loading
Loading
Loading
Loading
+1299 −0

File added.

Preview size limit exceeded, changes collapsed.

+12 −11
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  rustPlatform,
  fetchFromGitHub,
}:

buildGoModule rec {
rustPlatform.buildRustPackage rec {
  pname = "jwt-hack";
  version = "1.2.0";
  version = "2.0.0";

  src = fetchFromGitHub {
    owner = "hahwul";
    repo = "jwt-hack";
    tag = "v${version}";
    hash = "sha256-IHR+ItI4ToINLpkVc7yrgpNTS17nD02G6x3pNMEfIW4=";
    hash = "sha256-uJur/ABoAaQT3BBO2yprK/0/bQPT138Yg9IbztZ6w2w=";
  };

  vendorHash = "sha256-YEH+epSvyy1j0s8AIJ5+BdF47H7KqgBRC4t81noOkjo=";
  cargoLock = {
    lockFile = ./Cargo.lock;
  };

  ldflags = [
    "-w"
    "-s"
  ];
  postPatch = ''
    ln -s ${./Cargo.lock} Cargo.lock
  '';

  meta = {
    description = "Tool for attacking JWT";
    description = "JSON Web Token Hack Toolkit";
    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;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "jwt-hack";