28 lines
751 B
Nix
Raw Permalink Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security, fetchpatch }:
2020-01-10 15:44:09 +01:00
rustPlatform.buildRustPackage rec {
pname = "jwt-cli";
2021-02-18 10:03:30 +00:00
version = "4.0.0";
2020-01-10 15:44:09 +01:00
src = fetchFromGitHub {
owner = "mike-engel";
repo = pname;
rev = version;
2021-02-18 10:03:30 +00:00
sha256 = "sha256-82Le0kdt/fnSQwsRRYHy4Jv9rsCPGf5dIWmoZE2cPxY=";
2020-01-10 15:44:09 +01:00
};
cargoSha256 = "sha256-sCauVxc6JPJ4dBi5LOt+v9bdlRW+oF4cd/sfG5Xdv70=";
2020-09-09 17:56:36 -07:00
2021-01-15 16:19:50 +07:00
buildInputs = lib.optional stdenv.isDarwin Security;
2020-01-12 15:11:17 +01:00
2020-09-16 23:20:16 +02:00
doInstallCheck = true;
installCheckPhase = "$out/bin/jwt --version";
meta = with lib; {
2020-01-10 15:44:09 +01:00
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 ];
};
}