wasmtime: use lts & main variants instead of majorVersion arg

The previous `majorVersion` arg broke nix-update-script when the major
version changed.
This commit is contained in:
winston
2026-06-25 22:04:02 +02:00
parent 73296faa01
commit 8fb3a33625
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -10,22 +10,22 @@
nix-update-script,
enableShared ? !stdenv.hostPlatform.isStatic,
enableStatic ? stdenv.hostPlatform.isStatic,
majorVersion ? "46",
variant ? "main",
}:
let
sources = {
"36" = {
lts-36 = {
version = "36.0.11";
hash = "sha256-rrSI2dSOA8/1CL7JhW0eQ7LaeS5EqTVnyn2HTI+/x20=";
cargoHash = "sha256-S67/fv7179uDy4PpwycyXSWAknIC/7ZzvzWPOd6MD+8=";
};
"46" = {
main = {
version = "46.0.1";
hash = "sha256-rPIO+wQSu5KWT/v3Wbjs29p5Aoqpnpb+TwSTT5CRb6U=";
cargoHash = "sha256-cJD5iq342giBP+YdTem0/nOsMhI7DKRL4iiai5xayv8=";
};
};
source = sources.${majorVersion};
source = sources.${variant};
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "wasmtime";
+1 -1
View File
@@ -4,7 +4,7 @@
}:
# NOTE: LTS Version EOL August 20 2027
(wasmtime.override { majorVersion = "36"; }).overrideAttrs (old: {
(wasmtime.override { variant = "lts-36"; }).overrideAttrs (old: {
__structuredAttrs = true;
passthru = old.passthru // {