1 { lib, stdenv, buildNpmPackage, fetchFromGitHub, cacert }:
4 pname = "inshellisense";
5 version = "0.0.1-rc.18";
7 src = fetchFromGitHub {
10 rev = "refs/tags/${version}";
11 hash = "sha256-9cSygGQar2rD3lorehlNmUzd0ZnABNJSJwmoNH3MTmk=";
14 npmDepsHash = "sha256-/FSzeHPgVb5OB6mjP5GYAYBdTmk93xyWJI+NH7L61Do=";
16 # Needed for dependency `@homebridge/node-pty-prebuilt-multiarch`
17 # On Darwin systems the build fails with,
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));
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;
27 description = "IDE style command line auto complete";
28 homepage = "https://github.com/microsoft/inshellisense";
29 license = licenses.mit;
30 maintainers = [ maintainers.malo ];