depot/third_party/nixpkgs/pkgs/servers/home-assistant/custom-lovelace-modules/mushroom/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

35 lines
823 B
Nix

{ 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 ];
};
}