minhtml: 0.16.4 -> 0.18.1

This commit is contained in:
tye-exe
2025-10-30 11:57:30 +00:00
parent 6d07a3a589
commit 5516393ce3
2 changed files with 9 additions and 2087 deletions
-2063
View File
File diff suppressed because it is too large Load Diff
+9 -24
View File
@@ -1,36 +1,21 @@
{
lib,
fetchFromGitHub,
rustPlatform,
fetchCrate,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "minhtml";
version = "0.16.4";
version = "0.18.1";
src = fetchFromGitHub {
owner = "wilsonzlin";
repo = "minify-html";
tag = "v${finalAttrs.version}";
hash = "sha256-SoCSHhgTLfztSfvzxxpZn/nQpXbKlkE4iiP0YZ0MVjY=";
# Upstream does not include a lock file.
# See https://github.com/wilsonzlin/minify-html/issues/255
src = fetchCrate {
pname = "minhtml";
inherit (finalAttrs) version;
hash = "sha256-yrZueueww9rQXaHCeBO6d2pO58SZ8yz2a9Ia5dp7lBY=";
};
# Upstream does not include a lock file so one has to be patched in.
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
'';
# Ensures that only the correct package gets built, as upstream contains multiple.
cargoBuildFlags = [
"-p"
"minhtml"
];
cargoTestFlags = [
"-p"
"minhtml"
];
cargoHash = "sha256-TFlDbVL8JARwV/xSQ+Cbwguqnr11nw24/L0MbHJazas=";
meta = {
description = "Minifier for HTML, JavaScript, and CSS";