Skip to content

Commit

Permalink
clubhouse-cli: use buildNpmPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Sep 3, 2023
1 parent ac3d200 commit cf466c3
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 70 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 @@ -56,6 +56,7 @@ mapAliases {
inherit (pkgs) carto; # added 2023-08-17
castnow = pkgs.castnow; # added 2023-07-30
inherit (pkgs) clean-css-cli; # added 2023-08-18
inherit (pkgs) clubhouse-cli; # added 2023-08-18
coc-imselect = throw "coc-imselect was removed because it was broken"; # added 2023-08-21
inherit (pkgs) configurable-http-proxy; # added 2023-08-19
inherit (pkgs) cordova; # added 2023-08-18
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/main-programs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
cdk8s-cli = "cdk8s";
cdktf-cli = "cdktf";
clipboard-cli = "clipboard";
clubhouse-cli = "club";
conventional-changelog-cli = "conventional-changelog";
cpy-cli = "cpy";
diff2html-cli = "diff2html";
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 @@ -40,7 +40,6 @@
, "cdk8s-cli"
, "cdktf-cli"
, "clipboard-cli"
, "clubhouse-cli"
, "coc-clangd"
, "coc-cmake"
, "coc-css"
Expand Down
68 changes: 0 additions & 68 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/misc/clubhouse-cli/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
pname = "clubhouse-cli";
version = "2.7.0";

src = fetchFromGitHub {
owner = "andjosh";
repo = "clubhouse-cli";
rev = "v${version}";
hash = "sha256-OGUEPWKL3GBIQHEDljX1gXMRDEztIrJT5ivAIcyW91k=";
};

npmDepsHash = "sha256-QlCLEvmqLVkWwgTVlToYD6bptLp/MVfQ10Wdfr3PIr4=";

meta = {
description = "A command line tool for viewing, creating and updating clubhouse.io stories";
homepage = "https://github.com/andjosh/clubhouse-cli";
changelog = "https://github.com/andjosh/clubhouse-cli/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
mainProgram = "club";
maintainers = with lib.maintainers; [ tobim ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,8 @@ with pkgs;

clematis = callPackage ../tools/misc/clematis { };

clubhouse-cli = callPackage ../tools/misc/clubhouse-cli { };

colorless = callPackage ../tools/misc/colorless { };

configurable-http-proxy = callPackage ../tools/networking/configurable-http-proxy { };
Expand Down

0 comments on commit cf466c3

Please sign in to comment.