summary refs log tree commit diff
diff options
context:
space:
mode:
authorAyush Karnawat <ayush.karnawat97@gmail.com>2021-10-18 10:13:59 -0400
committerGitHub <noreply@github.com>2021-10-18 16:13:59 +0200
commita9f158eebe8468b0f7131f6bbf41f81341ad473b (patch)
treee8943f1c7afb005633d219a9e162f69ab20980c3
parent2df6fbbd96df79fca8e28b58fe88d18a5bff24c5 (diff)
downloadnixpkgs-a9f158eebe8468b0f7131f6bbf41f81341ad473b.tar
nixpkgs-a9f158eebe8468b0f7131f6bbf41f81341ad473b.tar.gz
nixpkgs-a9f158eebe8468b0f7131f6bbf41f81341ad473b.tar.bz2
nixpkgs-a9f158eebe8468b0f7131f6bbf41f81341ad473b.tar.lz
nixpkgs-a9f158eebe8468b0f7131f6bbf41f81341ad473b.tar.xz
nixpkgs-a9f158eebe8468b0f7131f6bbf41f81341ad473b.tar.zst
nixpkgs-a9f158eebe8468b0f7131f6bbf41f81341ad473b.zip
pprof: 2018-08-15 -> 2021-09-30 (#138721)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
-rw-r--r--pkgs/development/tools/profiling/pprof/default.nix53
-rw-r--r--pkgs/development/tools/profiling/pprof/deps.nix21
2 files changed, 31 insertions, 43 deletions
diff --git a/pkgs/development/tools/profiling/pprof/default.nix b/pkgs/development/tools/profiling/pprof/default.nix
index eab000e8d8e..03460f7f04c 100644
--- a/pkgs/development/tools/profiling/pprof/default.nix
+++ b/pkgs/development/tools/profiling/pprof/default.nix
@@ -1,33 +1,42 @@
-# This file was originally generated by https://github.com/kamilchm/go2nix v1.2.1
-{ lib, buildGoPackage, fetchgit }:
-
-buildGoPackage rec {
-  pname = "pprof-unstable";
-  version = "2018-08-15";
-  rev = "781f11b1fcf71fae9d185e7189b5e686f575075a";
-
-  goPackagePath = "github.com/google/pprof";
-
-  src = fetchgit {
-    inherit rev;
-    url = "git://github.com/google/pprof";
-    sha256 = "1nvzwcj6h4q0lsjlri3bym4axgv848w3xz57iz5p0wz9lcd5jsmf";
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "pprof";
+  version = "unstable-2021-09-30";
+
+  src = fetchFromGitHub {
+    owner = "google";
+    repo = "pprof";
+    rev = "7fe48b4c820be13151ae35ce5a5e3f54f1b53eef";
+    sha256 = "05nr3igdigs1586qplwfm17hfw0v81jy745g6vayq7cbplljfjb1";
   };
 
-  goDeps = ./deps.nix;
+  vendorSha256 = "0yl8y3m2ia3cwxhmg1km8358a0225khimv6hcvras8r2glm69h3f";
 
   meta = with lib; {
     description = "A tool for visualization and analysis of profiling data";
     homepage = "https://github.com/google/pprof";
     license = licenses.asl20;
     longDescription = ''
-      pprof reads a collection of profiling samples in profile.proto format and generates reports to visualize and help analyze the data. It can generate both text and graphical reports (through the use of the dot visualization package).
-
-      profile.proto is a protocol buffer that describes a set of callstacks and symbolization information. A common usage is to represent a set of sampled callstacks from statistical profiling. The format is described on the proto/profile.proto file. For details on protocol buffers, see https://developers.google.com/protocol-buffers
-
-      Profiles can be read from a local file, or over http. Multiple profiles of the same type can be aggregated or compared.
-
-      If the profile samples contain machine addresses, pprof can symbolize them through the use of the native binutils tools (addr2line and nm).
+      pprof reads a collection of profiling samples in profile.proto format and
+      generates reports to visualize and help analyze the data. It can generate
+      both text and graphical reports (through the use of the dot visualization
+      package).
+
+      profile.proto is a protocol buffer that describes a set of callstacks and
+      symbolization information. A common usage is to represent a set of sampled
+      callstacks from statistical profiling. The format is described on the
+      proto/profile.proto file. For details on protocol buffers, see
+      https://developers.google.com/protocol-buffers
+
+      Profiles can be read from a local file, or over http. Multiple profiles of
+      the same type can be aggregated or compared.
+
+      If the profile samples contain machine addresses, pprof can symbolize them
+      through the use of the native binutils tools (addr2line and nm).
 
       This is not an official Google product.
     '';
diff --git a/pkgs/development/tools/profiling/pprof/deps.nix b/pkgs/development/tools/profiling/pprof/deps.nix
deleted file mode 100644
index e76f6367996..00000000000
--- a/pkgs/development/tools/profiling/pprof/deps.nix
+++ /dev/null
@@ -1,21 +0,0 @@
-# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
-[
-  {
-    goPackagePath = "github.com/chzyer/readline";
-    fetch = {
-      type = "git";
-      url = "https://github.com/chzyer/readline";
-      rev = "2972be24d48e78746da79ba8e24e8b488c9880de";
-      sha256 = "104q8dazj8yf6b089jjr82fy9h1g80zyyzvp3g8b44a7d8ngjj6r";
-    };
-  }
-  {
-    goPackagePath = "github.com/ianlancetaylor/demangle";
-    fetch = {
-      type = "git";
-      url = "https://github.com/ianlancetaylor/demangle";
-      rev = "fcd258a6f0b45dc345a407ee5568cf9a4d24a0ae";
-      sha256 = "10hdzq6n4mb13g8ddqvwjwx14djfyxhh0gjc888vdihzvhyqhvrp";
-    };
-  }
-]