home-assistant-custom-lovelace-modules.restriction-card: init at 1.2.19 (#424387)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "restriction-card";
|
||||
version = "1.2.19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iantrich";
|
||||
repo = "restriction-card";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-2scUSEpDPrMoos/QuOqXARAf1IL8P4gJaga7LRQ/67U=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-9Hz+7Q4i5baIWxVIo6e8d5isvZWnJW2947q5Uk0Gm9w=";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
install -m0644 dist/restriction-card.js $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/iantrich/restriction-card/releases/tag/${finalAttrs.src.tag}";
|
||||
description = "Apply restrictions to Lovelace cards";
|
||||
homepage = "https://github.com/iantrich/restriction-card";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ jfly ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user