From b7902a74457f1af3362d5aa1dc7efd2bef7fd212 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 18 Jun 2019 16:20:00 -0500 Subject: [PATCH] ctop: 2017-05-28 -> 0.7.2 --- pkgs/tools/system/ctop/default.nix | 27 +++---- pkgs/tools/system/ctop/deps.nix | 120 ----------------------------- 2 files changed, 12 insertions(+), 135 deletions(-) delete mode 100644 pkgs/tools/system/ctop/deps.nix diff --git a/pkgs/tools/system/ctop/default.nix b/pkgs/tools/system/ctop/default.nix index 533f0ab11e40..effc879e4789 100644 --- a/pkgs/tools/system/ctop/default.nix +++ b/pkgs/tools/system/ctop/default.nix @@ -1,25 +1,22 @@ -{ stdenv, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub }: -buildGoPackage rec { - name = "ctop-unstable-${version}"; - version = "2017-05-28"; - rev = "b4e1fbf29073625ec803025158636bdbcf2357f4"; - - goPackagePath = "github.com/bcicen/ctop"; +buildGoModule rec { + pname = "ctop"; + version = "0.7.2"; src = fetchFromGitHub { - inherit rev; owner = "bcicen"; - repo = "ctop"; - sha256 = "162pc7gds66cgznqlq9gywr0qij5pymn7xszlq9rn4w2fm64qgg3"; + repo = pname; + rev = "v${version}"; + sha256 = "0mm6hl5qklfv0yffj6cgypsgcrk4fq6p60djycfgj20yhz9cmf9x"; }; - goDeps = ./deps.nix; + modSha256 = "0ad1gvamckg94r7f68cnjdbq9nyz6c3hh339hy4hghxd3rd1qskn"; - meta = with stdenv.lib; { - description = "Concise commandline monitoring for containers"; - homepage = https://ctop.sh/; + meta = with lib; { + description = "Top-like interface for container metrics"; + homepage = "https://ctop.sh/"; license = licenses.mit; - maintainers = with maintainers; [ apeyroux ]; + maintainers = with maintainers; [ apeyroux marsam ]; }; } diff --git a/pkgs/tools/system/ctop/deps.nix b/pkgs/tools/system/ctop/deps.nix deleted file mode 100644 index 4fb75cdcd3df..000000000000 --- a/pkgs/tools/system/ctop/deps.nix +++ /dev/null @@ -1,120 +0,0 @@ -# This file was generated by https://github.com/kamilchm/go2nix v1.2.0 -[ - { - goPackagePath = "github.com/docker/docker"; - fetch = { - type = "git"; - url = "https://github.com/docker/docker"; - rev = "599f207b45e74648a8a6a7ac87d77e40930504e9"; - sha256 = "1n0r9ahcx5h2f97ap5fy5hgnpamzzrgihknx7wgvvpm4hrzxm31r"; - }; - } - { - goPackagePath = "github.com/docker/go-units"; - fetch = { - type = "git"; - url = "https://github.com/docker/go-units"; - rev = "0dadbb0345b35ec7ef35e228dabb8de89a65bf52"; - sha256 = "1sqwvcszxqpv77xf2d8fxvryxphdwj9v8f93231wpnk9kpilhyii"; - }; - } - { - goPackagePath = "github.com/fsouza/go-dockerclient"; - fetch = { - type = "git"; - url = "https://github.com/fsouza/go-dockerclient"; - rev = "c933ed18bef34ec2955de03de8ef9a3bb996e3df"; - sha256 = "1qci2m5ifmz3lcmc4y6k9baz9z1i77xnrrcq6zi9mpclhhfr0qzd"; - }; - } - { - goPackagePath = "github.com/gizak/termui"; - fetch = { - type = "git"; - url = "https://github.com/gizak/termui"; - rev = "ea10e6ccee219e572ffad0ac1909f1a17f6db7d6"; - sha256 = "1nxihx4vwxwgq3vnccc8a1v34raqvvsl0p10v1nlvs61rjvs9g32"; - }; - } - { - goPackagePath = "github.com/hashicorp/go-cleanhttp"; - fetch = { - type = "git"; - url = "https://github.com/hashicorp/go-cleanhttp"; - rev = "3573b8b52aa7b37b9358d966a898feb387f62437"; - sha256 = "1pbl6p7w5wp1c70x7fp94h4ynk2ajfa76rqin3d2hq1w2fcb7byr"; - }; - } - { - goPackagePath = "github.com/jgautheron/codename-generator"; - fetch = { - type = "git"; - url = "https://github.com/jgautheron/codename-generator"; - rev = "16d037c7cc3c9b552fe4af9828b7338d752dbaf9"; - sha256 = "0v6fji5swnrdjlp3bahv65chnbhxzl25j3hwwnyvvbb4iwa9a376"; - }; - } - { - goPackagePath = "github.com/maruel/panicparse"; - fetch = { - type = "git"; - url = "https://github.com/maruel/panicparse"; - rev = "ae43f192cef2add653fe1481a3070ed00a4a6981"; - sha256 = "11q8v4adbrazqvh24235s5nifck0d1083gbwv4dh5lhd10xlwdvr"; - }; - } - { - goPackagePath = "github.com/mattn/go-runewidth"; - fetch = { - type = "git"; - url = "https://github.com/mattn/go-runewidth"; - rev = "97311d9f7767e3d6f422ea06661bc2c7a19e8a5d"; - sha256 = "0dxlrzn570xl7gb11hjy1v4p3gw3r41yvqhrffgw95ha3q9p50cg"; - }; - } - { - goPackagePath = "github.com/mitchellh/go-wordwrap"; - fetch = { - type = "git"; - url = "https://github.com/mitchellh/go-wordwrap"; - rev = "ad45545899c7b13c020ea92b2072220eefad42b8"; - sha256 = "0ny1ddngvwfj3njn7pmqnf3l903lw73ynddw15x8ymp7hidv27v9"; - }; - } - { - goPackagePath = "github.com/nsf/termbox-go"; - fetch = { - type = "git"; - url = "https://github.com/nsf/termbox-go"; - rev = "7994c181db7761ca3c67a217068cf31826113f5f"; - sha256 = "0ssc54wamn3h8z68kv4fdgvk3kjii95psi2kk0slsilmg5v6jzhj"; - }; - } - { - goPackagePath = "github.com/nu7hatch/gouuid"; - fetch = { - type = "git"; - url = "https://github.com/nu7hatch/gouuid"; - rev = "179d4d0c4d8d407a32af483c2354df1d2c91e6c3"; - sha256 = "1isyfix5w1wm26y3a15ha3nnpsxqaxz5ngq06hnh6c6y0inl2fwj"; - }; - } - { - goPackagePath = "github.com/op/go-logging"; - fetch = { - type = "git"; - url = "https://github.com/op/go-logging"; - rev = "970db520ece77730c7e4724c61121037378659d9"; - sha256 = "1cpna2x5l071z1vrnk7zipdkka8dzwsjyx7m79xk0lr08rip0kcj"; - }; - } - { - goPackagePath = "golang.org/x/net"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/net"; - rev = "3da985ce5951d99de868be4385f21ea6c2b22f24"; - sha256 = "0mhqa53pyj9gxg4m0c9s0f4r5jp0rihlni1nrpkd1d921xxzh714"; - }; - } -]