jwt-cli: fix build

This commit is contained in:
William Kral 2020-09-09 17:56:36 -07:00 committed by zowoq
parent 0ce8cf87d8
commit fb5a153c26

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
{ stdenv, fetchFromGitHub, rustPlatform, Security, fetchpatch }:
rustPlatform.buildRustPackage rec {
pname = "jwt-cli";
@ -13,6 +13,14 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "165g1v0c8jxs8ddm8ld0hh7k8mvk3566ig43pf99hnw009fg1yc2";
patches = [
# to fix `cargo test -- --test-threads $NIX_BUILD_CORES`
(fetchpatch {
url = "https://github.com/mike-engel/jwt-cli/commit/df87111f3084abdecce5d58ad031edb6e7fef94a.patch";
sha256 = "1vjk7wy8ddkz9wjkiayag61gklrq59m7bwlaiyinjp4n15gx0j1k";
})
];
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
meta = with stdenv.lib; {