Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 41 lines 781 B view raw
1{ buildNpmPackage 2, darwin 3, fetchFromGitHub 4, lib 5, python3 6, stdenv 7}: 8 9buildNpmPackage rec { 10 pname = "nest-cli"; 11 version = "10.3.2"; 12 13 src = fetchFromGitHub { 14 owner = "nestjs"; 15 repo = pname; 16 rev = version; 17 hash = "sha256-FSI87oeHiNqL8FhGavPtqurOr/1Y5iGawSwhBhLB2Ls="; 18 }; 19 20 npmDepsHash = "sha256-RqotLpMISfB2xE9zng0TkapJ0y1fuVWP/0nY2VcMVRU="; 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}