36 lines
828 B
Nix
36 lines
828 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "mushroom";
|
|
version = "4.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "piitaya";
|
|
repo = "lovelace-mushroom";
|
|
rev = "v${version}";
|
|
hash = "sha256-EMKGf/oULS1aqaNWvw2aDxiY8jq3WihwLy1uVW4KeBU=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-QL0JxHsf6QcP/s+5ZCFei7kv/avhoUWoz/7tqkvW0aQ=";
|
|
|
|
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 ];
|
|
};
|
|
}
|