Merge pull request #278983 from mweinelt/mushroom
home-assistant-custom-lovelace-modules.mushroom: init at 3.2.3
This commit is contained in:
commit
6a9382b8d1
2 changed files with 37 additions and 0 deletions
|
@ -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 { };
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue