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-04-22 22:15:05 +02:00
|
|
|
version = "3.1.0";
|
2020-01-10 15:44:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mike-engel";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-04-22 22:15:05 +02:00
|
|
|
sha256 = "0pmxis3m3madwnmswz9hn0i8fz6a9bg11slgrrwql7mx23ijqf6y";
|
2020-01-10 15:44:09 +01:00
|
|
|
};
|
|
|
|
|
2020-04-22 22:15:05 +02:00
|
|
|
cargoSha256 = "165g1v0c8jxs8ddm8ld0hh7k8mvk3566ig43pf99hnw009fg1yc2";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|