3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/jwt-cli/default.nix

26 lines
707 B
Nix
Raw Normal View History

2020-01-12 14:11:17 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
2020-01-10 14:44:09 +00:00
rustPlatform.buildRustPackage rec {
pname = "jwt-cli";
2020-02-09 16:32:41 +00:00
version = "2.5.2";
2020-01-10 14:44:09 +00:00
src = fetchFromGitHub {
owner = "mike-engel";
repo = pname;
rev = version;
2020-02-09 16:32:41 +00:00
sha256 = "1q6dqh8z6mhiksjrhi602cvq31jgc18pfbwf6mlm9gi1grpgm5dl";
2020-01-10 14:44:09 +00:00
};
2020-02-09 16:32:41 +00:00
cargoSha256 = "0k3fla0zz2r66y5fvmbcdhjd2jq8md2sxgcjb3x8sipzqfv8bwi2";
2020-01-10 14:44:09 +00:00
2020-01-12 14:11:17 +00:00
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
2020-01-10 14:44:09 +00:00
meta = with stdenv.lib; {
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 ];
platforms = platforms.all;
};
}