From 0c09de94dc29a143fccb2d82213712836848f76e Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Tue, 2 Apr 2024 13:33:47 -0700 Subject: [PATCH] inshellisense: 0.0.1-rc.4 -> 0.0.1-rc.12 --- pkgs/by-name/in/inshellisense/package.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/in/inshellisense/package.nix b/pkgs/by-name/in/inshellisense/package.nix index 2361c0e69ad2..20fa22003911 100644 --- a/pkgs/by-name/in/inshellisense/package.nix +++ b/pkgs/by-name/in/inshellisense/package.nix @@ -1,17 +1,27 @@ -{ lib, buildNpmPackage, fetchFromGitHub }: +{ lib, stdenv, buildNpmPackage, fetchFromGitHub, cacert }: buildNpmPackage rec { pname = "inshellisense"; - version = "0.0.1-rc.4"; + version = "0.0.1-rc.12"; src = fetchFromGitHub { owner = "microsoft"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-PYSonVyclGSH3ArbqJuKrBNGbJaQEp6XemwnHboVwPk="; + hash = "sha256-dDjIKVV1dSCIa2Y2d1AQQAw9Rcflh0AnKlwsQSblIhs="; }; - npmDepsHash = "sha256-sjr4Hy1/zWPAlVGsMkyQIQcBT86KLaN2/UAaAd7Mn6Q="; + npmDepsHash = "sha256-uBsPaUvEiR5oCl8rZvpyNPXSB/Vlcx937lT4WqgekHI="; + + # Needed for dependency `@homebridge/node-pty-prebuilt-multiarch` + # On Darwin systems the build fails with, + # + # npm ERR! ../src/unix/pty.cc:413:13: error: use of undeclared identifier 'openpty' + # npm ERR! int ret = openpty(&master, &slave, nullptr, NULL, static_cast(&winp)); + # + # when `node-gyp` tries to build the dep. The below allows `npm` to download the prebuilt binary. + makeCacheWritable = stdenv.isDarwin; + nativeBuildInputs = lib.optional stdenv.isDarwin cacert; meta = with lib; { description = "IDE style command line auto complete";