Commit 5fad6b6f authored by Claudi's avatar Claudi
Browse files

k9s: 0.28.0 -> 0.28.2

Changes: https://github.com/derailed/k9s/compare/v0.28.0...v0.28.2

Also added an updateScript for automated updates.
parent d46a75dc
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, k9s }:
{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, nix-update-script, k9s }:

buildGoModule rec {
  pname = "k9s";
  version = "0.28.0";
  version = "0.28.2";

  src = fetchFromGitHub {
    owner  = "derailed";
    repo   = "k9s";
    rev    = "v${version}";
    sha256 = "sha256-qFZLl37Y9g9LMRnWacwz46cgjVreLg2WyWZrSj3T4ok=";
    sha256 = "sha256-3ij77aBNufSEP3wf8wtQ/aBehE45fwrgofCmyXxuyPM=";
  };

  ldflags = [
@@ -20,7 +20,7 @@ buildGoModule rec {

  tags = [ "netgo" ];

  vendorHash = "sha256-TfU1IzTdrWQpK/YjQQImRGeo7byaXUI182xSed+21PU=";
  vendorHash = "sha256-kgi5ZfbjkSiJ/uZkfpeMhonSt/4sO3RKARpoww1FsTo=";

  # TODO investigate why some config tests are failing
  doCheck = !(stdenv.isDarwin && stdenv.isAarch64);
@@ -28,11 +28,14 @@ buildGoModule rec {
  preCheck = "export HOME=$(mktemp -d)";
  # For arch != x86
  # {"level":"fatal","error":"could not create any of the following paths: /homeless-shelter/.config, /etc/xdg","time":"2022-06-28T15:52:36Z","message":"Unable to create configuration directory for k9s"}
  passthru.tests.version = testers.testVersion {
  passthru = {
    tests.version = testers.testVersion {
      package = k9s;
      command = "HOME=$(mktemp -d) k9s version -s";
      inherit version;
    };
    updateScript = nix-update-script { };
  };

  nativeBuildInputs = [ installShellFiles ];
  postInstall = ''