Skip to content

Commit

Permalink
Merge pull request NixOS#249990 from dotlambda/clubhouse-cli-buildNpm…
Browse files Browse the repository at this point in the history
…Package

clubhouse-cli: use buildNpmPackage
  • Loading branch information
dotlambda authored and ryantm committed Sep 10, 2023
2 parents c52f7e8 + cf466c3 commit 85bc9a4
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 70 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: docs

on: push

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
ref: "minman"
- uses: cachix/install-nix-action@main
- run: |
nix build .#nixpkgs-manual-mmdoc
- if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: doc/result/multi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,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
coffee-script = pkgs.coffeescript; # added 2023-08-18
inherit (pkgs) configurable-http-proxy; # added 2023-08-19
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 @@ -29,7 +29,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 @@ -38,7 +38,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 @@ -1707,6 +1707,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 85bc9a4

Please sign in to comment.