jwt-cli: fix build on Darwin

This commit is contained in:
Robert Helgesson 2020-01-12 15:11:17 +01:00
parent 9884cb3ed0
commit b108fd5843
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform }:
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "jwt-cli";
@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "005y92acsn5j490jkp23ny7bsjd9ql1glybmbh4cyc8b15hmy618";
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
meta = with stdenv.lib; {
description = "Super fast CLI tool to decode and encode JWTs";
homepage = "https://github.com/mike-engel/jwt-cli";

View File

@ -1862,7 +1862,9 @@ in
jotta-cli = callPackage ../applications/misc/jotta-cli { };
jwt-cli = callPackage ../tools/security/jwt-cli { };
jwt-cli = callPackage ../tools/security/jwt-cli {
inherit (darwin.apple_sdk.frameworks) Security;
};
kapacitor = callPackage ../servers/monitoring/kapacitor { };