Merge pull request #149120 from mweinelt/nodepackages-nodejs-16_x

nodePackages: move to nodejs-14_x, regenerate
This commit is contained in:
Jörg Thalheim
2021-12-09 14:00:14 +00:00
committed by GitHub
4 changed files with 1359 additions and 1986 deletions
@@ -2,7 +2,7 @@
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}:
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}:
let
nodeEnv = import ./node-env.nix {
+12 -1
View File
@@ -1,9 +1,20 @@
#!/usr/bin/env bash
set -eu -o pipefail
cd "$( dirname "${BASH_SOURCE[0]}" )"
node2nix=$(nix-build ../../.. -A nodePackages.node2nix)
rm -f ./node-env.nix
${node2nix}/bin/node2nix -i node-packages.json -o node-packages.nix -c composition.nix
# Track the latest active nodejs LTS here: https://nodejs.org/en/about/releases/
${node2nix}/bin/node2nix \
-i node-packages.json \
-o node-packages.nix \
-c composition.nix \
--pkg-name nodejs-14_x
# using --no-out-link in nix-build argument would cause the
# gc to run before the script finishes
# which would cause a failure
File diff suppressed because it is too large Load Diff
@@ -6,6 +6,8 @@
, nodePackages
, moreutils
, esbuild
, pkg-config
, libsecret
, setDefaultServerPath ? true
}:
@@ -22,7 +24,11 @@ let
releaseTag = rust-analyzer.version;
nativeBuildInputs = [ jq moreutils esbuild ];
nativeBuildInputs = [
jq moreutils esbuild
# Required by `keytar`, which is a dependency of `vsce`.
pkg-config libsecret
];
# Follows https://github.com/rust-analyzer/rust-analyzer/blob/41949748a6123fd6061eb984a47f4fe780525e63/xtask/src/dist.rs#L39-L65
postInstall = ''
@@ -34,7 +40,9 @@ let
' package.json | sponge package.json
mkdir -p $vsix
npx vsce package -o $vsix/${pname}.zip
# vsce ask for continue due to missing LICENSE.md
# Should be removed after https://github.com/rust-analyzer/rust-analyzer/commit/acd5c1f19bf7246107aaae7b6fe3f676a516c6d2
echo y | npx vsce package -o $vsix/${pname}.zip
'';
};