Unverified Commit 8656287a authored by Martin Weinelt's avatar Martin Weinelt
Browse files

home-assistant-custom-lovelace-modules.mushroom: init at 3.2.3

🍄 Mushroom is a collection of cards for Home Assistant Dashboard UI.
parent 96b277a1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -8,5 +8,7 @@

  mini-media-player = callPackage ./mini-media-player {};

  mushroom = callPackage ./mushroom { };

  zigbee2mqtt-networkmap = callPackage ./zigbee2mqtt-networkmap { };
}
+35 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}