Unverified Commit 6fd66630 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

bootdev-cli : 1.24.0 -> 1.26.0 (#498487)

parents 9c4bca6f 6876b118
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -11,13 +11,13 @@

buildGoModule (finalAttrs: {
  pname = "bootdev-cli";
  version = "1.24.0";
  version = "1.26.0";

  src = fetchFromGitHub {
    owner = "bootdotdev";
    repo = "bootdev";
    tag = "v${finalAttrs.version}";
    hash = "sha256-/vVT2daJCxJDmJr9Xi27POCAKURCS171ORb7UJp/CqU=";
    hash = "sha256-hr8mqnX4mv6P8WpXCpP678lLUaanUu6X4jL5GJeBdzo=";
  };

  vendorHash = "sha256-ZDioEU5uPCkd+kC83cLlpgzyOsnpj2S7N+lQgsQb8uY=";
@@ -33,10 +33,9 @@ buildGoModule (finalAttrs: {
  ];

  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    installShellCompletion --cmd bootdev \
      --bash <($out/bin/bootdev completion bash) \
      --zsh <($out/bin/bootdev completion zsh) \
      --fish <($out/bin/bootdev completion fish)
    for shell in bash fish zsh; do
      installShellCompletion --cmd bootdev --"$shell" <($out/bin/bootdev completion "$shell")
    done
  '';

  nativeInstallCheckInputs = [ versionCheckHook ];