depot/third_party/nixpkgs/pkgs/servers/home-assistant/custom-lovelace-modules/mushroom/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

35 lines
823 B
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "mushroom";
version = "3.2.4";
src = fetchFromGitHub {
owner = "piitaya";
repo = "lovelace-mushroom";
rev = "v${version}";
hash = "sha256-UV/kqeVslB1lc1a9uvj8ocQKeAVINwo3aH8oHC9GLBQ=";
};
npmDepsHash = "sha256-p43ks6HM23LK3LOBOZA0uV+DTOj89/boBpjcXpbcw24=";
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 ];
};
}