weaver: 0.21.2 -> 0.22.1 (#500303)

This commit is contained in:
Colin
2026-03-27 20:04:50 +00:00
committed by GitHub
+18 -17
View File
@@ -3,41 +3,41 @@
stdenv,
rustPlatform,
fetchFromGitHub,
fetchNpmDeps,
fetchPnpmDeps,
testers,
installShellFiles,
pkg-config,
openssl,
nodejs,
npmHooks,
pnpm_10,
pnpmConfigHook,
python3,
}:
let
pnpm = pnpm_10;
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "weaver";
version = "0.21.2";
version = "0.22.1";
src = fetchFromGitHub {
owner = "open-telemetry";
repo = "weaver";
tag = "v${finalAttrs.version}";
hash = "sha256-LMDJg3IKrKRPDkprwlWmBVeaZeI2dZht0eHv7eVGqjo=";
hash = "sha256-PMvayBLXufAIOrLquoSxXqjxbymaFFAvY1EXI23DFeI=";
};
cargoHash = "sha256-EzY7OtgPDxT3g2ISV0VZTKa9kLqtKJZH4zT9v2xN/s8=";
cargoHash = "sha256-9wUb7c91OEnEiWVQrJRN0tFotIo3ZCtodgELUakEKig=";
postPatch = ''
# Remove build.rs to build UI separately.
rm build.rs
'';
npmDeps = fetchNpmDeps {
name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps";
inherit (finalAttrs) src;
pnpmDeps = fetchPnpmDeps {
inherit (finalAttrs) pname version src;
sourceRoot = "${finalAttrs.src.name}/ui";
hash = "sha256-VOL2BLTfJ1nM2L3IZpixOuAaBUHVJX032MGb3+eousY=";
inherit pnpm;
fetcherVersion = 3;
hash = "sha256-GSg97V12KiHVNQeFGbpYm46Bd40WKvnBjt6h1T/t6Tw=";
};
npmRoot = "ui";
pnpmRoot = "ui";
buildInputs = [ openssl ];
@@ -45,7 +45,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
installShellFiles
pkg-config
nodejs
npmHooks.npmConfigHook
pnpmConfigHook
pnpm
python3
];
@@ -56,7 +57,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
preBuild = ''
pushd ui
npm run build
pnpm build
popd
'';