minhtml: 0.16.4 -> 0.18.1
This commit is contained in:
Generated
-2063
File diff suppressed because it is too large
Load Diff
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user