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

28 lines
762 B
Nix
Raw Normal View History

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