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

29 lines
792 B
Nix
Raw Normal View History

2020-01-12 15:11:17 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
2020-01-10 15:44:09 +01:00
rustPlatform.buildRustPackage rec {
pname = "jwt-cli";
2020-02-09 17:32:41 +01:00
version = "2.5.2";
2020-01-10 15:44:09 +01:00
src = fetchFromGitHub {
owner = "mike-engel";
repo = pname;
rev = version;
2020-02-09 17:32:41 +01:00
sha256 = "1q6dqh8z6mhiksjrhi602cvq31jgc18pfbwf6mlm9gi1grpgm5dl";
2020-01-10 15:44:09 +01:00
};
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
2020-02-09 17:32:41 +01:00
cargoSha256 = "0k3fla0zz2r66y5fvmbcdhjd2jq8md2sxgcjb3x8sipzqfv8bwi2";
2020-01-10 15:44:09 +01:00
2020-01-12 15:11:17 +01:00
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
2020-01-10 15:44:09 +01: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;
};
}