From c447792f28bd3bf3c2c8af2eef99539bb3acb65e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Jan 2025 22:08:26 +0100 Subject: [PATCH] jwt-cli: refactor --- pkgs/tools/security/jwt-cli/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/security/jwt-cli/default.nix b/pkgs/tools/security/jwt-cli/default.nix index 561dc0b50f2d..9fc3f9c84416 100644 --- a/pkgs/tools/security/jwt-cli/default.nix +++ b/pkgs/tools/security/jwt-cli/default.nix @@ -13,16 +13,16 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "mike-engel"; - repo = pname; - rev = version; - sha256 = "sha256-2pYCNLopvIHcKiN4qewQCdkGWHYQ6vQVCaApxGsRG9E="; + repo = "jwt-cli"; + tag = version; + hash = "sha256-2pYCNLopvIHcKiN4qewQCdkGWHYQ6vQVCaApxGsRG9E="; }; cargoHash = "sha256-M/9b+iPufq0S7P2PdPYIDS1to5WAtJbS3O/+NfO3sbY="; nativeBuildInputs = [ installShellFiles ]; - buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security; + buildInputs = lib.optional stdenv.hostPlatform.isDarwin [ Security ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd jwt \ @@ -41,7 +41,8 @@ rustPlatform.buildRustPackage rec { meta = with lib; { description = "Super fast CLI tool to decode and encode JWTs"; homepage = "https://github.com/mike-engel/jwt-cli"; - license = with licenses; [ mit ]; + changelog = "https://github.com/mike-engel/jwt-cli/releases/tag/${version}"; + license = licenses.mit; maintainers = with maintainers; [ rycee ]; mainProgram = "jwt"; };