39 lines
935 B
Nix
39 lines
935 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
...
|
|
}: let
|
|
pname = "material-you-utilities";
|
|
version = "1.0.4";
|
|
in
|
|
buildNpmPackage {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Nerwyn";
|
|
repo = "ha-${pname}";
|
|
rev = version;
|
|
hash = "sha256-iyGy6dpHZMtU2ap+smZUlLYnFKs6s8SaGAC9Y3jdoiA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace ./webpack.config.js --replace-fail \
|
|
"git branch --show-current" "echo main"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp ./dist/material-you-utilities.min.js $out/material-you-utilities.js
|
|
'';
|
|
|
|
npmDepsHash = "sha256-5cc610/BhX19k2iREYVoE3c43yDmRJsE0Nvrq/gAVjY=";
|
|
|
|
meta = {
|
|
license = lib.licenses.asl20;
|
|
homepage = "https://github.com/Nerwyn/ha-material-you-utilities";
|
|
description = ''
|
|
Material You color theme generation and Home Assistant component modification.
|
|
'';
|
|
};
|
|
}
|