diff options
author | Renaud <c0bw3b@users.noreply.github.com> | 2022-02-28 16:20:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 16:20:51 +0100 |
commit | 1516a6bfed0641c38b052e317fcd337a2c5003b4 (patch) | |
tree | 18e8f34243bd69b1b4c2a9df3d730a3a274b16cd /pkgs/tools | |
parent | 00197eff36bb8f7dd7f53a59f730e1fd8e11b1f4 (diff) | |
parent | 60779b767755bd28a0839d9742cf770e199c59f7 (diff) |
Merge pull request #161341 from nagy/pcstat-2021
pcstat: 2017-05-28 -> 0.0.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/system/pcstat/default.nix | 20 | ||||
-rw-r--r-- | pkgs/tools/system/pcstat/deps.nix | 11 |
2 files changed, 9 insertions, 22 deletions
diff --git a/pkgs/tools/system/pcstat/default.nix b/pkgs/tools/system/pcstat/default.nix index d01b08a14343e..02a214259c792 100644 --- a/pkgs/tools/system/pcstat/default.nix +++ b/pkgs/tools/system/pcstat/default.nix @@ -1,19 +1,17 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub }: -buildGoPackage { - pname = "pcstat-unstable"; - version = "2017-05-28"; - - goPackagePath = "github.com/tobert/pcstat"; +buildGoModule rec { + pname = "pcstat"; + version = "0.0.1"; src = fetchFromGitHub { - rev = "91a7346e5b462a61e876c0574cb1ba331a6a5ac5"; - owner = "tobert"; - repo = "pcstat"; - sha256 = "88853e42d16c05e580af4fb8aa815a84ea0fc43e3a25e19c85e649a5f5a2874c"; + owner = "tobert"; + repo = "pcstat"; + rev = "v${version}"; + sha256 = "sha256-rN6oqhvrzMBhwNLm8+r4rZWZYZUhOq2h764KVhSycNo="; }; - goDeps = ./deps.nix; + vendorSha256 = "sha256-1y6rzarkFNX8G4E9FzCLfWxULbdNYK3DeelNCJ+7Y9Q="; meta = with lib; { description = "Page Cache stat: get page cache stats for files on Linux"; diff --git a/pkgs/tools/system/pcstat/deps.nix b/pkgs/tools/system/pcstat/deps.nix deleted file mode 100644 index 809bde1122f39..0000000000000 --- a/pkgs/tools/system/pcstat/deps.nix +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - goPackagePath = "golang.org/x/sys"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/sys"; - rev = "d38bf781f16e180a1b2ad82697d2f81d7b7ecfac"; - sha256 = "0eedd518ab68c6dfd431a41709d9888bbc13ed31ff64d69dcbd947442b3aaa04"; - }; - } -] |