Commit dc5e294e authored by Louis Bettens's avatar Louis Bettens
Browse files

gotop: 4.1.4 -> 4.2.0

parent a5b65f81
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -2,32 +2,23 @@
, stdenv
, buildGoModule
, fetchFromGitHub
, fetchpatch
, installShellFiles
, IOKit
}:

buildGoModule rec {
  pname = "gotop";
  version = "4.1.4";
  version = "4.2.0";

  src = fetchFromGitHub {
    owner = "xxxserxxx";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-jAUlaj9Nv/ipzxAkG2myd9DIboHj7IarNMVk/FQ274g=";
    hash = "sha256-W7a3QnSIR95N88RqU2sr6oEDSqOXVfAwacPvS219+1Y=";
  };

  patches = [
    # To remove after https://github.com/xxxserxxx/gotop/pull/234 is merged
    (fetchpatch {
      url = "https://github.com/xxxserxxx/gotop/commit/3e3243fa1f046c126bf9cb34d55a12963b3ac116.patch";
      sha256 = "sha256-4q4dBTPpVfgXvApzUXdEEzIe31PoLHUK4mBWth6qCIg=";
    })
  ];

  proxyVendor = true;
  vendorSha256 = "sha256-Sq9ol9bZb0BfR/C8phcMSEjG9qgWyTmwpo/TS30j3Vk=";
  vendorSha256 = "sha256-gpgduZbFCMMg/mXefhwMHvs4omml3RZ0h5XexO5vslM=";

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