nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "pkgtop";
9 version = "2.5.1";
10
11 src = fetchFromGitHub {
12 owner = "orhun";
13 repo = "pkgtop";
14 rev = version;
15 hash = "sha256-NY8nx4BKAUq1nGBlzRzm2OH1k01TV6qs2IcoErhuxTc=";
16 };
17
18 vendorHash = "sha256-dlDbNym7CNn5088znMNgGAr2wBM3+nYv3q362353aLs=";
19
20 postInstall = ''
21 mv $out/bin/{cmd,pkgtop}
22 '';
23
24 meta = {
25 description = "Interactive package manager and resource monitor designed for the GNU/Linux";
26 homepage = "https://github.com/orhun/pkgtop";
27 changelog = "https://github.com/orhun/pkgtop/releases/tag/${version}";
28 license = lib.licenses.gpl3Only;
29 maintainers = [ ];
30 mainProgram = "pkgtop";
31 };
32}