Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildNpmPackage 2, darwin 3, fetchFromGitHub 4, lib 5, python3 6, stdenv 7}: 8 9buildNpmPackage rec { 10 pname = "nest-cli"; 11 version = "10.4.2"; 12 13 src = fetchFromGitHub { 14 owner = "nestjs"; 15 repo = pname; 16 rev = version; 17 hash = "sha256-Xy4KhgDGEJGIAv7eC15nIU9ozhWUh2x8D8FnOf5jRDs="; 18 }; 19 20 npmDepsHash = "sha256-dCfoX1WOhPFIXrhoErx4CJVicB11Gz378POagS5B8bE="; 21 22 env = { 23 npm_config_build_from_source = true; 24 }; 25 26 nativeBuildInputs = [ 27 python3 28 ]; 29 30 buildInputs = lib.optionals stdenv.isDarwin [ 31 darwin.apple_sdk.frameworks.CoreServices 32 ]; 33 34 meta = with lib; { 35 description = "CLI tool for Nest applications"; 36 homepage = "https://nestjs.com"; 37 license = licenses.mit; 38 mainProgram = "nest"; 39 maintainers = [ maintainers.ehllie ]; 40 }; 41}