Unverified Commit 38a8ca82 authored by Thiago Kenji Okada's avatar Thiago Kenji Okada Committed by GitHub
Browse files

Merge pull request #246968 from otavio/sh-0_12_4

shellhub-agent: 0.12.3 -> 0.12.4
parents c1613407 600ea898
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
, gitUpdater
, nix-update-script
, makeWrapper
, openssh
, libxcrypt
@@ -11,26 +11,23 @@

buildGoModule rec {
  pname = "shellhub-agent";
  version = "0.12.3";
  version = "0.12.4";

  src = fetchFromGitHub {
    owner = "shellhub-io";
    repo = "shellhub";
    rev = "v${version}";
    hash = "sha256-WKMy2JttXFRcW1yb5aQ6xe8BoSoN65K8Hlmac62+QPc=";
    hash = "sha256-OvXbc3feCatyubbRZlaiXvGP59ApyAS0b0Z6SeJsZnE=";
  };

  modRoot = "./agent";

  vendorHash = "sha256-BqzpQcL3U6SIrDW5NfBG0D2zyvv1zNu7uoOBYmKbF4Y=";
  vendorHash = "sha256-qQRi4GeepRpYPhE5ftUj01tMCqBh5txbizfkVXmrgOQ=";

  ldflags = [ "-s" "-w" "-X main.AgentVersion=v${version}" ];

  passthru = {
    updateScript = gitUpdater {
      rev-prefix = "v";
      ignoredVersions = ".(rc|beta).*";
    };
    updateScript = nix-update-script { };

    tests.version = testers.testVersion {
      package = shellhub-agent;