Merge pull request #317229 from natsukium/node-packages/update

This commit is contained in:
Sandro 2024-06-06 13:40:10 +02:00 committed by GitHub
commit 58016e1526
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8729 additions and 10892 deletions

File diff suppressed because it is too large Load Diff

View File

@ -65,7 +65,7 @@ final: prev: {
fast-cli = prev.fast-cli.override {
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
export PUPPETEER_SKIP_DOWNLOAD=1
'';
postInstall = ''
wrapProgram $out/bin/fast \
@ -244,8 +244,51 @@ final: prev: {
'';
};
postcss-cli = prev.postcss-cli.override (oldAttrs: {
postcss-cli = prev.postcss-cli.override (oldAttrs: let
esbuild-version = (lib.findFirst (dep: dep.name == "esbuild") null oldAttrs.dependencies).version;
esbuild-linux-x64 = {
name = "_at_esbuild_slash_esbuild-linux-x64";
packageName = "@esbuild/linux-x64";
version = esbuild-version;
src = fetchurl {
url = "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-${esbuild-version}.tgz";
sha512 = "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==";
};
};
esbuild-linux-arm64 = {
name = "_at_esbuild_slash_esbuild-linux-arm64";
packageName = "@esbuild/linux-arm64";
version = esbuild-version;
src = fetchurl {
url = "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-${esbuild-version}.tgz";
sha512 = "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==";
};
};
esbuild-darwin-x64 = {
name = "_at_esbuild_slash_esbuild-darwin-x64";
packageName = "@esbuild/darwin-x64";
version = esbuild-version;
src = fetchurl {
url = "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-${esbuild-version}.tgz";
sha512 = "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==";
};
};
esbuild-darwin-arm64 = {
name = "_at_esbuild_slash_esbuild-darwin-arm64";
packageName = "@esbuild/darwin-arm64";
version = esbuild-version;
src = fetchurl {
url = "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-${esbuild-version}.tgz";
sha512 = "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==";
};
};
in{
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
dependencies = oldAttrs.dependencies
++ lib.optional (stdenv.isLinux && stdenv.isx86_64) esbuild-linux-x64
++ lib.optional (stdenv.isLinux && stdenv.isAarch64) esbuild-linux-arm64
++ lib.optional (stdenv.isDarwin && stdenv.isx86_64) esbuild-darwin-x64
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) esbuild-darwin-arm64;
postInstall = ''
wrapProgram "$out/bin/postcss" \
--prefix NODE_PATH : ${final.postcss}/lib/node_modules \
@ -446,7 +489,7 @@ final: prev: {
version = workerdVersion;
src = fetchurl {
url = "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-${workerdVersion}.tgz";
sha512 = "G1BEzbw9TFIeMvc425F145IetC7fuH4KOkGhseLq9y/mt5PfDWkghwmXSK+q0BiMwm0XAobtzVlHcEr2u4WlRQ==";
sha512 = "sha512-E8mj+HPBryKwaJAiNsYzXtVjKCL0KvUBZbtxJxlWM4mLSQhT+uwGT3nydb/hFY59rZnQgZslw0oqEWht5TEYiQ==";
};
};
linuxWorkerdArm = {
@ -456,7 +499,7 @@ final: prev: {
version = workerdVersion;
src = fetchurl {
url = "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-${workerdVersion}.tgz";
sha512 = "LLk/d/y77TRu6QOG3CJUI2cD3Ff2lSg0ts6G83bsm9ZK+WKObWFFSPBy9l81m3EnlKFh7RZCzxN4J10kuDaO8w==";
sha512 = "sha512-/Fr1W671t2triNCDCBWdStxngnbUfZunZ/2e4kaMLzJDJLYDtYdmvOUCBDzUD4ssqmIMbn9RCQQ0U+CLEoqBqw==";
};
};
darwinWorkerd = {
@ -466,7 +509,7 @@ final: prev: {
version = workerdVersion;
src = fetchurl {
url = "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-${workerdVersion}.tgz";
sha512 = "rfHlvsWzkqEEQNvm14AOE/BYHYzB9wxQHCaZZEgwOuTl5KpDcs9La0N0LaDTR78ESumIWOcifVmko2VTrZb7TQ==";
sha512 = "sha512-ATaXjefbTsrv4mpn4Fdua114RRDXcX5Ky+Mv+f4JTUllgalmqC4CYMN4jxRz9IpJU/fNMN8IEfvUyuJBAcl9Iw==";
};
};
darwinWorkerdArm = {
@ -476,7 +519,7 @@ final: prev: {
version = workerdVersion;
src = fetchurl {
url = "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-${workerdVersion}.tgz";
sha512 = "IXGOxHsPdRYfAzcY6IroI1PDvx3hhXf18qFCloHp8Iw5bzLgq/PTjcp10Z/2xedZ2hVlfpHy1eEptsTmi9YeNw==";
sha512 = "sha512-wnbsZI4CS0QPCd+wnBHQ40C28A/2Qo4ESi1YhE2735G3UNcc876MWksZhsubd+XH0XPIra6eNFqyw6wRMpQOXA==";
};
};