Merge pull request #278983 from mweinelt/mushroom

home-assistant-custom-lovelace-modules.mushroom: init at 3.2.3
This commit is contained in:
Martin Weinelt 2024-01-09 05:23:59 +01:00 committed by GitHub
commit 6a9382b8d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -8,5 +8,7 @@
mini-media-player = callPackage ./mini-media-player {}; mini-media-player = callPackage ./mini-media-player {};
mushroom = callPackage ./mushroom { };
zigbee2mqtt-networkmap = callPackage ./zigbee2mqtt-networkmap { }; zigbee2mqtt-networkmap = callPackage ./zigbee2mqtt-networkmap { };
} }

View file

@ -0,0 +1,35 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "mushroom";
version = "3.2.3";
src = fetchFromGitHub {
owner = "piitaya";
repo = "lovelace-mushroom";
rev = "v${version}";
hash = "sha256-JGpMcIO8zTjcTqjKWxmVHnshIvBeCy/6UmMT+qTHla4=";
};
npmDepsHash = "sha256-0vSTpCG8AbDaiHW5d5nUgcrfPMt85JHX4KKoWTOgr4g=";
installPhase = ''
runHook preInstall
mkdir $out
install -m0644 dist/mushroom.js $out
runHook postInstall
'';
meta = with lib; {
changelog = "https://github.com/piitaya/lovelace-mushroom/releases/tag/v${version}";
description = "Mushroom Cards - Build a beautiful dashboard easily";
homepage = "https://github.com/piitaya/lovelace-mushroom";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}