Skip to content

Commit

Permalink
jwt-cli: fix build
Browse files Browse the repository at this point in the history
(cherry picked from commit fb5a153)
  • Loading branch information
wkral authored and zowoq committed Sep 10, 2020
1 parent 87aa949 commit 4a1d2f7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/tools/security/jwt-cli/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
{ stdenv, fetchFromGitHub, rustPlatform, Security, fetchpatch }:

rustPlatform.buildRustPackage rec {
pname = "jwt-cli";
Expand All @@ -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; {
Expand Down

0 comments on commit 4a1d2f7

Please sign in to comment.