Skip to content

Commit

Permalink
google-clasp: repackage using buildNpmPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed May 7, 2023
1 parent eb751d6 commit bc79b22
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 336 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 @@ -36,6 +36,7 @@ in
mapAliases {
"@antora/cli" = pkgs.antora; # Added 2023-05-06
"@githubnext/github-copilot-cli" = pkgs.github-copilot-cli; # Added 2023-05-02
"@google/clasp" = pkgs.google-clasp; # Added 2023-05-07
"@nestjs/cli" = pkgs.nest-cli; # Added 2023-05-06
manta = pkgs.node-manta; # Added 2023-05-06
trito = pkgs.triton; # Added 2023-05-06
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 @@ -20,7 +20,6 @@
"@commitlint/cli" = "commitlint";
"@forge/cli" = "forge";
"@gitbeaker/cli" = "gitbeaker";
"@google/clasp" = "clasp";
"@medable/mdctl-cli" = "mdctl";
"@mermaid-js/mermaid-cli" = "mmdc";
"@nerdwallet/shepherd" = "shepherd";
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 @@ -7,7 +7,6 @@
, "@commitlint/config-conventional"
, "@emacs-eask/cli"
, "@forge/cli"
, "@google/clasp"
, "@medable/mdctl-cli"
, "@microsoft/rush"
, "@nerdwallet/shepherd"
Expand Down
333 changes: 0 additions & 333 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.

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

buildNpmPackage rec {
pname = "clasp";
version = "2.4.2";

src = fetchFromGitHub {
owner = "google";
repo = "clasp";
rev = "refs/tags/v${version}";
hash = "sha256-Cnnqbxjfx7hlRYIDtbjSbDO0QBHqLsleIGrAUQDLaCw=";
};

npmDepsHash = "sha256-4oYpGBpk4WBVnE1HNYmRRGHZgcPgta2YQB00YyWvbiI=";

# `npm run build` tries installing clasp globally
npmBuildScript = [ "compile" ];

meta = with lib; {
description = "Develop Apps Script Projects locally";
homepage = "https://github.com/google/clasp#readme";
changelog = "https://github.com/google/clasp/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ natsukium ];
};
}
Loading

0 comments on commit bc79b22

Please sign in to comment.