about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/nest-cli/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/nest-cli/default.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/nest-cli/default.nix30
1 files changed, 20 insertions, 10 deletions
diff --git a/nixpkgs/pkgs/development/tools/nest-cli/default.nix b/nixpkgs/pkgs/development/tools/nest-cli/default.nix
index 5fc0c87dc55d..9fdb579b5426 100644
--- a/nixpkgs/pkgs/development/tools/nest-cli/default.nix
+++ b/nixpkgs/pkgs/development/tools/nest-cli/default.nix
@@ -1,32 +1,42 @@
 { buildNpmPackage
+, darwin
 , fetchFromGitHub
 , lib
+, python3
+, stdenv
 }:
 
 buildNpmPackage rec {
   pname = "nest-cli";
-  version = "9.4.2";
+  version = "10.1.17";
 
   src = fetchFromGitHub {
     owner = "nestjs";
     repo = pname;
     rev = version;
-    hash = "sha256-9I6ez75byOPVKvX93Yv1qSM3JaWlmmvZCTjNB++cmw0=";
+    hash = "sha256-03GDrKjlvl3O3kJlbbyDYxtlfwLkZbvxC9gvP534zSY=";
   };
 
-  # 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-nZ9ant2c+15bRBikFcKZW8aiFqI3WC6hktSiBfnma/I=";
 
-  npmDepsHash = "sha256-QA2ZgbXiG84HuutJ2ZCGMrnqpwrPlHL/Bur7Pak8WcQ=";
+  env = {
+    npm_config_build_from_source = true;
+  };
+
+  nativeBuildInputs = [
+    python3
+  ];
+
+  buildInputs = lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.CoreServices
+  ];
 
   meta = with lib; {
-    description = "CLI tool for Nest applications 🍹";
+    description = "CLI tool for Nest applications";
     homepage = "https://nestjs.com";
     license = licenses.mit;
+    mainProgram = "nest";
     maintainers = [ maintainers.ehllie ];
+    broken = stdenv.isDarwin; # https://github.com/nestjs/nest-cli/pull/2281
   };
 }