vimPlugins: disallow packaging plugins that are already in luaPackages (#376370)
[NixPkgs.git] / pkgs / by-name / in / inshellisense / package.nix
blob3b811d34c79bf493ab7a741e1c3ea9832196a177
2   lib,
3   stdenv,
4   buildNpmPackage,
5   fetchFromGitHub,
6   cacert,
7 }:
9 buildNpmPackage rec {
10   pname = "inshellisense";
11   version = "0.0.1-rc.20";
13   src = fetchFromGitHub {
14     owner = "microsoft";
15     repo = pname;
16     tag = version;
17     hash = "sha256-UGF7tARMnRaeIEKUhYa63hBpEoMb6qV209ECPirkgyg=";
18   };
20   npmDepsHash = "sha256-ycU0vEMgiKBaGKWMBPzQfIvBx6Q7jIHxgzZyi9VGBhw=";
22   # Needed for dependency `@homebridge/node-pty-prebuilt-multiarch`
23   # On Darwin systems the build fails with,
24   #
25   # npm ERR! ../src/unix/pty.cc:413:13: error: use of undeclared identifier 'openpty'
26   # npm ERR!   int ret = openpty(&master, &slave, nullptr, NULL, static_cast<winsi ze*>(&winp));
27   #
28   # when `node-gyp` tries to build the dep. The below allows `npm` to download the prebuilt binary.
29   makeCacheWritable = stdenv.hostPlatform.isDarwin;
30   nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin cacert;
32   meta = with lib; {
33     description = "IDE style command line auto complete";
34     homepage = "https://github.com/microsoft/inshellisense";
35     license = licenses.mit;
36     maintainers = [ maintainers.malo ];
37   };