Commit 3441c3be authored by Fabian Affolter's avatar Fabian Affolter
Browse files

jwt-cli: migrate to pkgs/by-name

parent 5bbeabe2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 \
+0 −4
Original line number Diff line number Diff line
@@ -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;
  };