Unverified Commit 1648fec6 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

deck: 1.40.2 -> 1.40.3 (#345095)

parents 1e32703b a9eaa7fc
Loading
Loading
Loading
Loading
+16 −8
Original line number Diff line number Diff line
{ buildGoModule, lib, installShellFiles, fetchFromGitHub }:
{
  buildGoModule,
  lib,
  installShellFiles,
  fetchFromGitHub,
  nix-update-script,
}:

buildGoModule rec {
  pname = "deck";
  version = "1.40.2";
  version = "1.40.3";

  src = fetchFromGitHub {
    owner = "Kong";
    repo = "deck";
    rev = "v${version}";
    hash = "sha256-qLWDZEYO/0as2+4OM6/FAJcN+vnRBrcx59uHRkougLQ=";
    rev = "refs/tags/v${version}";
    hash = "sha256-n6WASCtDwBX4FASSWI17JpU7rDXIeSidPWhj/MB2tUs=";
  };

  nativeBuildInputs = [ installShellFiles ];
@@ -21,7 +27,7 @@ buildGoModule rec {
  ];

  proxyVendor = true; # darwin/linux hash mismatch
  vendorHash = "sha256-RkhpR9sKWaO1jceCU4sS4TmxS5giq2uUIkiHNnahQZw=";
  vendorHash = "sha256-csoSvu7uce1diB4EsQCRRt08mX+rJoxfZqAtaoo0x4M=";

  postInstall = ''
    installShellCompletion --cmd deck \
@@ -30,11 +36,13 @@ buildGoModule rec {
      --zsh <($out/bin/deck completion zsh)
  '';

  meta = with lib; {
  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Configuration management and drift detection tool for Kong";
    homepage = "https://github.com/Kong/deck";
    license = licenses.asl20;
    license = lib.licenses.asl20;
    mainProgram = "deck";
    maintainers = with maintainers; [ liyangau ];
    maintainers = with lib.maintainers; [ liyangau ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -534,6 +534,10 @@ with pkgs;
  dcgm = callPackage ../os-specific/linux/dcgm { };
  deck = callPackage ../by-name/de/deck/package.nix {
    buildGoModule = buildGo123Module;
  };
  dhallDirectoryToNix = callPackage ../build-support/dhall/directory-to-nix.nix { };
  dhallPackageToNix = callPackage ../build-support/dhall/package-to-nix.nix { };