summary refs log tree commit diff
path: root/pkgs/tools/misc/pgmetrics
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2018-11-06 22:04:21 -0500
committerMario Rodas <marsam@users.noreply.github.com>2018-11-07 06:47:31 -0500
commit780a3ffa1226195e10675211683be4be38795919 (patch)
treed5c8684170709cf6fa2c38a6bd7f55188a9f97b1 /pkgs/tools/misc/pgmetrics
parent78090f4f094f6d551b07a767fff60ce10f221d72 (diff)
downloadnixpkgs-780a3ffa1226195e10675211683be4be38795919.tar
nixpkgs-780a3ffa1226195e10675211683be4be38795919.tar.gz
nixpkgs-780a3ffa1226195e10675211683be4be38795919.tar.bz2
nixpkgs-780a3ffa1226195e10675211683be4be38795919.tar.lz
nixpkgs-780a3ffa1226195e10675211683be4be38795919.tar.xz
nixpkgs-780a3ffa1226195e10675211683be4be38795919.tar.zst
nixpkgs-780a3ffa1226195e10675211683be4be38795919.zip
pgmetrics: init at 1.5.0
Diffstat (limited to 'pkgs/tools/misc/pgmetrics')
-rw-r--r--pkgs/tools/misc/pgmetrics/default.nix24
-rw-r--r--pkgs/tools/misc/pgmetrics/deps.nix84
2 files changed, 108 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pgmetrics/default.nix b/pkgs/tools/misc/pgmetrics/default.nix
new file mode 100644
index 00000000000..64d290ad89e
--- /dev/null
+++ b/pkgs/tools/misc/pgmetrics/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  name = "pgmetrics-${version}";
+  version = "1.5.0";
+
+  goPackagePath = "github.com/rapidloop/pgmetrics";
+
+  src = fetchFromGitHub {
+    owner  = "rapidloop";
+    repo   = "pgmetrics";
+    rev    = "refs/tags/v${version}";
+    sha256 = "1l3vd1lvp4a6irx0zpjb5bkskkb9krx9j7pwii8jy9dcjy4gj24f";
+  };
+
+  goDeps = ./deps.nix;
+
+  meta = with stdenv.lib; {
+    homepage = https://pgmetrics.io/;
+    description = "Collect and display information and stats from a running PostgreSQL server";
+    license = licenses.asl20;
+    maintainers = [ maintainers.marsam ];
+  };
+}
diff --git a/pkgs/tools/misc/pgmetrics/deps.nix b/pkgs/tools/misc/pgmetrics/deps.nix
new file mode 100644
index 00000000000..63b9492a982
--- /dev/null
+++ b/pkgs/tools/misc/pgmetrics/deps.nix
@@ -0,0 +1,84 @@
+# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
+[
+  {
+    goPackagePath  = "github.com/dustin/go-humanize";
+    fetch = {
+      type = "git";
+      url = "https://github.com/dustin/go-humanize";
+      rev =  "bb3d318650d48840a39aa21a027c6630e198e626";
+      sha256 = "1lqd8ix3cb164j5iazjby2jpa6bdsflhy0h9mi4yldvvcvrc194c";
+    };
+  }
+  {
+    goPackagePath  = "github.com/howeyc/gopass";
+    fetch = {
+      type = "git";
+      url = "https://github.com/howeyc/gopass";
+      rev =  "bf9dde6d0d2c004a008c27aaee91170c786f6db8";
+      sha256 = "1jxzyfnqi0h1fzlsvlkn10bncic803bfhslyijcxk55mgh297g45";
+    };
+  }
+  {
+    goPackagePath  = "github.com/lib/pq";
+    fetch = {
+      type = "git";
+      url = "https://github.com/lib/pq";
+      rev =  "88edab0803230a3898347e77b474f8c1820a1f20";
+      sha256 = "02y7c8xy33x5q4167x2drzrys41nfi7wxxp9hy4vpazfws88al9p";
+    };
+  }
+  {
+    goPackagePath  = "github.com/pborman/getopt";
+    fetch = {
+      type = "git";
+      url = "https://github.com/pborman/getopt";
+      rev =  "7148bc3a4c3008adfcab60cbebfd0576018f330b";
+      sha256 = "0zhvvmv671r1fbdd5hbv3flx8k2rb60giqx115w0553c56qkqfpj";
+    };
+  }
+  {
+    goPackagePath  = "github.com/rapidloop/pq";
+    fetch = {
+      type = "git";
+      url = "https://github.com/rapidloop/pq";
+      rev =  "f379fd34d14f11337c3945aa665f7718c0213317";
+      sha256 = "0svhissh6v1qdj9zypvj6jpjrx9g56gq8sf1pila41mczglmni05";
+    };
+  }
+  {
+    goPackagePath  = "github.com/xdg-go/stringprep";
+    fetch = {
+      type = "git";
+      url = "https://github.com/xdg-go/stringprep";
+      rev =  "bd625b8dc1e3b0f57412280ccbcc317f0c69d8db";
+      sha256 = "03nard51zgzbaq64p6gsvrz8fps3yazl3ydd115y0bppkdx2i4ji";
+    };
+  }
+  {
+    goPackagePath  = "golang.org/x/crypto";
+    fetch = {
+      type = "git";
+      url = "https://go.googlesource.com/crypto";
+      rev =  "432090b8f568c018896cd8a0fb0345872bbac6ce";
+      sha256 = "1i8616qqwih6g5nx8c1hfqhp0kb110ml3xkgsn6qvc36q04amjmq";
+    };
+  }
+  {
+    goPackagePath  = "golang.org/x/sys";
+    fetch = {
+      type = "git";
+      url = "https://go.googlesource.com/sys";
+      rev =  "37707fdb30a5b38865cfb95e5aab41707daec7fd";
+      sha256 = "1abrr2507a737hdqv4q7pw7hv6ls9pdiq9crhdi52r3gcz6hvizg";
+    };
+  }
+  {
+    goPackagePath  = "golang.org/x/text";
+    fetch = {
+      type = "git";
+      url = "https://go.googlesource.com/text";
+      rev =  "f21a4dfb5e38f5895301dc265a8def02365cc3d0";
+      sha256 = "0r6x6zjzhr8ksqlpiwm5gdd7s209kwk5p4lw54xjvz10cs3qlq19";
+    };
+  }
+]
\ No newline at end of file