Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
cacert,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "inshellisense";
|
|
version = "0.0.1-rc.21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "microsoft";
|
|
repo = "inshellisense";
|
|
tag = version;
|
|
hash = "sha256-zERwrvioPwGm/351kYuK9S3uOrrzs/6OFPRdNSSr7Tc=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-iD5SvkVbrHh0Hx44y6VtNerwBA8K7vSe/yfvhgndMEw=";
|
|
|
|
# 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<winsi ze*>(&winp));
|
|
#
|
|
# when `node-gyp` tries to build the dep. The below allows `npm` to download the prebuilt binary.
|
|
makeCacheWritable = stdenv.hostPlatform.isDarwin;
|
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin cacert;
|
|
|
|
meta = with lib; {
|
|
description = "IDE style command line auto complete";
|
|
homepage = "https://github.com/microsoft/inshellisense";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.malo ];
|
|
};
|
|
}
|