evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / in / inshellisense / package.nix
blob115639aba3d32244b54e78dfbdc7f6145f369f9c
1 { lib, stdenv, buildNpmPackage, fetchFromGitHub, cacert }:
3 buildNpmPackage rec {
4   pname = "inshellisense";
5   version = "0.0.1-rc.18";
7   src = fetchFromGitHub {
8     owner = "microsoft";
9     repo = pname;
10     rev = "refs/tags/${version}";
11     hash = "sha256-9cSygGQar2rD3lorehlNmUzd0ZnABNJSJwmoNH3MTmk=";
12   };
14   npmDepsHash = "sha256-/FSzeHPgVb5OB6mjP5GYAYBdTmk93xyWJI+NH7L61Do=";
16   # Needed for dependency `@homebridge/node-pty-prebuilt-multiarch`
17   # On Darwin systems the build fails with,
18   #
19   # npm ERR! ../src/unix/pty.cc:413:13: error: use of undeclared identifier 'openpty'
20   # npm ERR!   int ret = openpty(&master, &slave, nullptr, NULL, static_cast<winsi ze*>(&winp));
21   #
22   # when `node-gyp` tries to build the dep. The below allows `npm` to download the prebuilt binary.
23   makeCacheWritable = stdenv.hostPlatform.isDarwin;
24   nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin cacert;
26   meta = with lib; {
27     description = "IDE style command line auto complete";
28     homepage = "https://github.com/microsoft/inshellisense";
29     license = licenses.mit;
30     maintainers = [ maintainers.malo ];
31   };