From 26785ae6facfc2b2e8ed79f35d521aa97deceb70 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 18 Dec 2018 01:52:07 +0100 Subject: [PATCH] gotop: 1.5.0 -> 1.7.1 --- pkgs/tools/system/gotop/default.nix | 6 +++-- pkgs/tools/system/gotop/deps.nix | 39 +++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 pkgs/tools/system/gotop/deps.nix diff --git a/pkgs/tools/system/gotop/default.nix b/pkgs/tools/system/gotop/default.nix index 3aba05f7aefe..2b918d155817 100644 --- a/pkgs/tools/system/gotop/default.nix +++ b/pkgs/tools/system/gotop/default.nix @@ -2,7 +2,7 @@ buildGoPackage rec { name = "gotop-${version}"; - version = "1.5.0"; + version = "1.7.1"; goPackagePath = "github.com/cjbassi/gotop"; @@ -10,9 +10,11 @@ buildGoPackage rec { repo = "gotop"; owner = "cjbassi"; rev = version; - sha256 = "19kj7mziwkfcf9kkwph05jh5vlkfqpyrpxdk5gdf2swg07w1ld35"; + sha256 = "0dxnhal10kv6ypsg6mildzpz6vi1iw996q47f4rv8hvfyrffhzc9"; }; + goDeps = ./deps.nix; + meta = with stdenv.lib; { description = "A terminal based graphical activity monitor inspired by gtop and vtop"; homepage = https://github.com/cjbassi/gotop; diff --git a/pkgs/tools/system/gotop/deps.nix b/pkgs/tools/system/gotop/deps.nix new file mode 100644 index 000000000000..ceae7857551f --- /dev/null +++ b/pkgs/tools/system/gotop/deps.nix @@ -0,0 +1,39 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.3.0 +[ + { + goPackagePath = "github.com/cjbassi/termui"; + fetch = { + type = "git"; + url = "https://github.com/cjbassi/termui"; + rev = "e8dd23f6146c0e0d80f1be0163b8069abfbb921b"; + sha256 = "0jds2mpa7whrwaznlkcn2y92q41zbf2rjj5267kl8zqllbia8cbx"; + }; + } + { + goPackagePath = "github.com/docopt/docopt-go"; + fetch = { + type = "git"; + url = "https://github.com/docopt/docopt-go"; + rev = "ee0de3bc6815ee19d4a46c7eb90f829db0e014b1"; + sha256 = "0hlra7rmi5pmd7d93rv56ahiy4qkgmq8a6mz0jpadvbi5qh8lq6j"; + }; + } + { + goPackagePath = "github.com/shirou/gopsutil"; + fetch = { + type = "git"; + url = "https://github.com/shirou/gopsutil"; + rev = "51e6519305e4871657c291a6281fcddc6364bbef"; + sha256 = "1pvvaj51m0w2v6bp5hhhzfy27hbicf4ga7r9m073vqcwjnfyz431"; + }; + } + { + goPackagePath = "golang.org/x/sys"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/sys"; + rev = "9b800f95dbbc54abff0acf7ee32d88ba4e328c89"; + sha256 = "07v3l7q7y59cwvw0mc85i39v7qjcc1jh4svwi789rmrqqm5nq7q6"; + }; + } +]