2023-05-02 18:23:41 +02:00
|
|
|
{ buildNpmPackage
|
2023-09-11 00:59:01 +02:00
|
|
|
, darwin
|
2023-05-02 18:23:41 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
2023-09-11 00:59:01 +02:00
|
|
|
, python3
|
|
|
|
, stdenv
|
2023-05-02 18:23:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "nest-cli";
|
2024-02-12 06:24:44 +01:00
|
|
|
version = "10.3.2";
|
2023-05-02 18:23:41 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nestjs";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-02-12 06:24:44 +01:00
|
|
|
hash = "sha256-FSI87oeHiNqL8FhGavPtqurOr/1Y5iGawSwhBhLB2Ls=";
|
2023-05-02 18:23:41 +02:00
|
|
|
};
|
|
|
|
|
2024-02-12 06:24:44 +01:00
|
|
|
npmDepsHash = "sha256-RqotLpMISfB2xE9zng0TkapJ0y1fuVWP/0nY2VcMVRU=";
|
2023-05-02 18:23:41 +02:00
|
|
|
|
2023-09-11 00:59:01 +02:00
|
|
|
env = {
|
|
|
|
npm_config_build_from_source = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
|
|
];
|
2023-05-02 18:23:41 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-09-11 00:59:01 +02:00
|
|
|
description = "CLI tool for Nest applications";
|
2023-05-02 18:23:41 +02:00
|
|
|
homepage = "https://nestjs.com";
|
|
|
|
license = licenses.mit;
|
2023-09-11 00:59:01 +02:00
|
|
|
mainProgram = "nest";
|
2023-05-02 18:23:41 +02:00
|
|
|
maintainers = [ maintainers.ehllie ];
|
|
|
|
};
|
|
|
|
}
|