mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
42 lines
781 B
Nix
42 lines
781 B
Nix
{ buildNpmPackage
|
|
, darwin
|
|
, fetchFromGitHub
|
|
, lib
|
|
, python3
|
|
, stdenv
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "nest-cli";
|
|
version = "10.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nestjs";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-vnF+ES6RK4iiIJsWUV57DqoLischh+1MlmlK46Z6USY=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-9yd+k+HpARM63/esW+av0zfcuAVsp9Lkfp6hmUQO5Yg=";
|
|
|
|
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";
|
|
homepage = "https://nestjs.com";
|
|
license = licenses.mit;
|
|
mainProgram = "nest";
|
|
maintainers = [ maintainers.ehllie ];
|
|
};
|
|
}
|