Skip to content

Commit

Permalink
Merge pull request #246385 from dotlambda/gtop-buildNpmPackage
Browse files Browse the repository at this point in the history
gtop: use buildNpmPackage
  • Loading branch information
ryantm committed Aug 1, 2023
2 parents cd04ed9 + 1027dd6 commit e6c8427
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 95 deletions.
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ mapAliases {
"@nestjs/cli" = pkgs.nest-cli; # Added 2023-05-06
bitwarden-cli = pkgs.bitwarden-cli; # added 2023-07-25
eslint_d = pkgs.eslint_d; # Added 2023-05-26
gtop = pkgs.gtop; # added 2023-07-31
manta = pkgs.node-manta; # Added 2023-05-06
readability-cli = pkgs.readability-cli; # Added 2023-06-12
thelounge = pkgs.thelounge; # Added 2023-05-22
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@
, "makam"
, "meshcommander"
, "gqlint"
, "gtop"
, "gulp"
, "gulp-cli"
, "he"
Expand Down
93 changes: 0 additions & 93 deletions pkgs/development/node-packages/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions pkgs/tools/system/gtop/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
pname = "gtop";
version = "1.1.3";

src = fetchFromGitHub {
owner = "aksakalli";
repo = "gtop";
rev = "v${version}";
hash = "sha256-7jcfJOdy3PKT6+07iaZnjWnlPLk9BhPn8LApk23E8l4=";
};

npmDepsHash = "sha256-CUfoVkG74C7HpcO3T9HmwbxHsYAgW1vYBAgNvx2av0k=";

dontNpmBuild = true;

meta = {
description = "System monitoring dashboard for the terminal";
homepage = "https://github.com/aksakalli/gtop";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tfc ];
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27562,7 +27562,7 @@ with pkgs;

gt = callPackage ../os-specific/linux/gt { };

inherit (nodePackages) gtop;
gtop = callPackage ../tools/system/gtop { };

hd-idle = callPackage ../os-specific/linux/hd-idle { };

Expand Down

0 comments on commit e6c8427

Please sign in to comment.