2020-09-10 02:56:36 +02:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, Security, fetchpatch }:
|
2020-01-10 15:44:09 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "jwt-cli";
|
2020-09-16 23:20:16 +02:00
|
|
|
version = "3.2.1";
|
2020-01-10 15:44:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mike-engel";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-16 23:20:16 +02:00
|
|
|
sha256 = "07mnkr7hi29fyyyn7llb30p4ndiqz4gf1lnhm44qm09alaxmfvws";
|
2020-01-10 15:44:09 +01:00
|
|
|
};
|
|
|
|
|
2020-09-16 23:20:16 +02:00
|
|
|
cargoSha256 = "0jkzy7ssg9v9phhlldq6s4rfs3sn17y2r1k0jr10g9j15lzixa04";
|
2020-09-10 02:56:36 +02:00
|
|
|
|
2020-01-12 15:11:17 +01:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
|
2020-09-16 23:20:16 +02:00
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = "$out/bin/jwt --version";
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|