Skip to content

Commit

Permalink
jwt-cli: migrate to pkgs/by-name
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Jan 9, 2025
1 parent 5bbeabe commit f8980df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
lib,
stdenv,
darwin,
fetchFromGitHub,
gitUpdater,
installShellFiles,
rustPlatform,
Security,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -23,7 +23,7 @@ rustPlatform.buildRustPackage rec {

nativeBuildInputs = [ installShellFiles ];

buildInputs = lib.optional stdenv.hostPlatform.isDarwin [ Security ];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];

postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd jwt \
Expand All @@ -33,6 +33,7 @@ rustPlatform.buildRustPackage rec {
'';

doInstallCheck = true;

installCheckPhase = ''
$out/bin/jwt --version > /dev/null
$out/bin/jwt decode eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c \
Expand Down
4 changes: 0 additions & 4 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2399,10 +2399,6 @@ with pkgs;
stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
};

jwt-cli = callPackage ../tools/security/jwt-cli {
inherit (darwin.apple_sdk.frameworks) Security;
};

kaldi = callPackage ../tools/audio/kaldi {
inherit (darwin.apple_sdk.frameworks) Accelerate;
};
Expand Down

0 comments on commit f8980df

Please sign in to comment.