2023-05-24 13:37:59 +00:00
|
|
|
{ buildNpmPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, darwin
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
2023-10-09 19:29:22 +00:00
|
|
|
, python3
|
|
|
|
, stdenv
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "nest-cli";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "10.1.17";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nestjs";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-03GDrKjlvl3O3kJlbbyDYxtlfwLkZbvxC9gvP534zSY=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
npmDepsHash = "sha256-nZ9ant2c+15bRBikFcKZW8aiFqI3WC6hktSiBfnma/I=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
env = {
|
|
|
|
npm_config_build_from_source = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
description = "CLI tool for Nest applications";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://nestjs.com";
|
|
|
|
license = licenses.mit;
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "nest";
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = [ maintainers.ehllie ];
|
2023-10-09 19:29:22 +00:00
|
|
|
broken = stdenv.isDarwin; # https://github.com/nestjs/nest-cli/pull/2281
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|