@@ -2,27 +2,22 @@
22
33rustPlatform.buildRustPackage rec {
44 pname = "jwt-cli";
5− version = "3.1.0";
5+ version = "3.2.1";
66
77 src = fetchFromGitHub {
88 owner = "mike-engel";
99 repo = pname;
1010 rev = version;
11− sha256 = "0pmxis3m3madwnmswz9hn0i8fz6a9bg11slgrrwql7mx23ijqf6y";
11+ sha256 = "07mnkr7hi29fyyyn7llb30p4ndiqz4gf1lnhm44qm09alaxmfvws";
1212 };
1313
14− cargoSha256 = "165g1v0c8jxs8ddm8ld0hh7k8mvk3566ig43pf99hnw009fg1yc2";
15−
16− patches = [
17− # to fix `cargo test -- --test-threads $NIX_BUILD_CORES`
18− (fetchpatch {
19− url = "https://github.com/mike-engel/jwt-cli/commit/df87111f3084abdecce5d58ad031edb6e7fef94a.patch";
20− sha256 = "1vjk7wy8ddkz9wjkiayag61gklrq59m7bwlaiyinjp4n15gx0j1k";
21− })
22− ];
14+ cargoSha256 = "0jkzy7ssg9v9phhlldq6s4rfs3sn17y2r1k0jr10g9j15lzixa04";
2315
2416 buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
2517
18+ doInstallCheck = true;
19+ installCheckPhase = "$out/bin/jwt --version";
20+
2621 meta = with stdenv.lib; {
2722 description = "Super fast CLI tool to decode and encode JWTs";
2823 homepage = "https://github.com/mike-engel/jwt-cli";