nixpkgs-suyu/pkgs/tools/security/jwt-cli/default.nix

28 lines
753 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security, fetchpatch }:
2020-01-10 15:44:09 +01:00
rustPlatform.buildRustPackage rec {
pname = "jwt-cli";
2021-01-01 11:39:07 +01:00
version = "3.3.0";
2020-01-10 15:44:09 +01:00
src = fetchFromGitHub {
owner = "mike-engel";
repo = pname;
rev = version;
2021-01-01 11:39:07 +01:00
sha256 = "09zi55ffkhsckvqj84xnxn9bgfkrj9wnzqbh9hfsxzbk4xy7fc2h";
2020-01-10 15:44:09 +01:00
};
2021-01-01 11:39:07 +01:00
cargoSha256 = "1k13pw202fr5mvd0ys39n3dxwcl3sd01j6izfb28k06b6pav3wc8";
2020-09-10 02:56:36 +02:00
2021-01-15 10:19:50 +01:00
buildInputs = lib.optional stdenv.isDarwin Security;
2020-01-12 15:11:17 +01:00
2020-09-16 23:20:16 +02:00
doInstallCheck = true;
installCheckPhase = "$out/bin/jwt --version";
meta = with lib; {
2020-01-10 15:44:09 +01:00
description = "Super fast CLI tool to decode and encode JWTs";
homepage = "https://github.com/mike-engel/jwt-cli";
license = with licenses; [ mit ];
maintainers = with maintainers; [ rycee ];
};
}