Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
828 B
Nix
37 lines
828 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "mushroom";
|
|
version = "5.0.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "piitaya";
|
|
repo = "lovelace-mushroom";
|
|
rev = "v${version}";
|
|
hash = "sha256-c5Ba+05Goc8BC4oswecVpCXnsqYOih/pJEfYrv4Ajw4=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-GCKyP5xcf8sSFVAwVAtd9e72RWY/DKSmStWtW+5NA7k=";
|
|
|
|
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 ];
|
|
};
|
|
}
|