Skip to content

Commit

Permalink
Merge pull request #229692 from ehllie/nest-cli
Browse files Browse the repository at this point in the history
nest-cli: repackage using buildNpmPackage
  • Loading branch information
SuperSandro2000 authored May 6, 2023
2 parents 20d18c1 + 2a9a75d commit 75b4d0f
Show file tree
Hide file tree
Showing 7 changed files with 16,005 additions and 320 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 @@ -35,4 +35,5 @@ in

mapAliases ({
"@githubnext/github-copilot-cli" = pkgs.github-copilot-cli; # Added 2023-05-02
"@nestjs/cli" = pkgs.nest-cli;
})
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 @@ -24,7 +24,6 @@
"@medable/mdctl-cli" = "mdctl";
"@mermaid-js/mermaid-cli" = "mmdc";
"@nerdwallet/shepherd" = "shepherd";
"@nestjs/cli" = "nest";
"@prisma/language-server" = "prisma-language-server";
"@tailwindcss/language-server" = "tailwindcss-language-server";
"@uppy/companion" = "companion";
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 @@ -13,7 +13,6 @@
, "@medable/mdctl-cli"
, "@microsoft/rush"
, "@nerdwallet/shepherd"
, "@nestjs/cli"
, "@shopify/cli"
, "@squoosh/cli"
, "@tailwindcss/aspect-ratio"
Expand Down
318 changes: 0 additions & 318 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.

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

buildNpmPackage rec {
pname = "nest-cli";
version = "9.4.2";

src = fetchFromGitHub {
owner = "nestjs";
repo = pname;
rev = version;
hash = "sha256-9I6ez75byOPVKvX93Yv1qSM3JaWlmmvZCTjNB++cmw0=";
};

# Generated a new package-lock.json by running `npm upgrade`
# The upstream lockfile is using an old version of `fsevents`,
# which does not build on Darwin
postPatch = ''
cp ${./package-lock.json} ./package-lock.json
'';

npmDepsHash = "sha256-QA2ZgbXiG84HuutJ2ZCGMrnqpwrPlHL/Bur7Pak8WcQ=";

meta = with lib; {
description = "CLI tool for Nest applications 🍹";
homepage = "https://nestjs.com";
license = licenses.mit;
maintainers = [ maintainers.ehllie ];
};
}
Loading

0 comments on commit 75b4d0f

Please sign in to comment.