Skip to content

Commit

Permalink
nest-cli: repackage using buildNpmPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
ehllie committed May 3, 2023
1 parent 1fc2d8f commit 4a0b062
Show file tree
Hide file tree
Showing 4 changed files with 16,004 additions and 1 deletion.
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
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 4a0b062

Please sign in to comment.