jwt-cli: migrate to pkgs/by-name

This commit is contained in:
Fabian Affolter
2025-01-10 10:59:41 +01:00
parent 5bbeabe20c
commit 3441c3be20
2 changed files with 1 additions and 7 deletions
@@ -5,7 +5,6 @@
gitUpdater,
installShellFiles,
rustPlatform,
Security,
}:
rustPlatform.buildRustPackage rec {
@@ -23,8 +22,6 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin [ Security ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd jwt \
--bash <($out/bin/jwt completion bash) \
@@ -33,6 +30,7 @@ rustPlatform.buildRustPackage rec {
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/jwt --version > /dev/null
$out/bin/jwt decode eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c \
-4
View File
@@ -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;
};