Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1.1 KiB
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "material-you-utilities";
version = "2.0.14";
src = fetchFromGitHub {
owner = "Nerwyn";
repo = "material-you-utilities";
tag = version;
hash = "sha256-C2qNXQ/21zyXURjZuId+ANkhvjUCxqfATSW4hvU/9D4=";
};
npmDepsHash = "sha256-W9fKtN+Ux3Lzk4KtRPYM6B+1o8OtZ8ERkqdlT/PkXqA=";
postPatch = ''
# Remove git dependency from rspack config
substituteInPlace rspack.config.js \
--replace-fail "execSync('git branch --show-current').toString().trim() == 'main'" "false"
'';
installPhase = ''
runHook preInstall
mkdir $out
cp dist/material-you-utilities.min.js $out/
runHook postInstall
'';
passthru.entrypoint = "material-you-utilities.min.js";
meta = {
description = "Material Design 3 color theme generation and Home Assistant component modification";
homepage = "https://github.com/Nerwyn/material-you-utilities";
changelog = "https://github.com/Nerwyn/material-you-utilities/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.jamiemagee ];
};
}