[Backport release-25.11] servo: 0.1.0 -> 0.2.0 (#526329)

This commit is contained in:
Martin Weinelt
2026-05-31 14:43:20 +00:00
committed by GitHub

View File

@@ -1,7 +1,7 @@
{
lib,
stdenv,
rustPlatform,
rustPackages_1_94,
fetchFromGitHub,
nix-update-script,
@@ -61,17 +61,20 @@ let
libGL
]
);
inherit (rustPackages_1_94) rustPlatform;
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "servo";
version = "0.1.0";
version = "0.2.0";
src = fetchFromGitHub {
owner = "servo";
repo = "servo";
tag = "v${finalAttrs.version}";
hash = "sha256-DnjtKizYwadBYDqafFDuE/DRIjCqnK/L95zV0Fv0Xhc=";
hash = "sha256-zZitnAiexoroKx3TMu3sB0KDvIsBcT7Krwa6lJqY4yw=";
# Breaks reproducibility depending on whether the picked commit
# has other ref-names or not, which may change over time, i.e. with
# "ref-names: HEAD -> main" as long this commit is the branch HEAD
@@ -81,7 +84,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
'';
};
cargoHash = "sha256-TJXWscTnsXxaWTfn7BugVMPamXOsyHXQhJskX04X7Zw=";
cargoHash = "sha256-hZBI3Vte/FvN7qJy2VGF0LVQIFSWa931BFFbaUfN814=";
# set `HOME` to a temp dir for write access
# Fix invalid option errors during linking (https://github.com/mozilla/nixpkgs-mozilla/commit/c72ff151a3e25f14182569679ed4cd22ef352328)
@@ -167,6 +170,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
meta = {
# undefined libmozjs_sys symbols during linking
broken = stdenv.hostPlatform.isDarwin;
changelog = "https://github.com/servo/servo/releases/tag/${finalAttrs.src.tag}";
description = "Embeddable, independent, memory-safe, modular, parallel web rendering engine";
homepage = "https://servo.org";
license = lib.licenses.mpl20;