mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
36 lines
823 B
Nix
36 lines
823 B
Nix
{ lib
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "mushroom";
|
|
version = "4.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "piitaya";
|
|
repo = "lovelace-mushroom";
|
|
rev = "v${version}";
|
|
hash = "sha256-Ybhz8MsMa3cr7GoRRZTPj4+XdI/oWtlE3yQDsEHgYaA=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-BuGikB97xgyASqCYzEyQX/daQ41HCua4K2MVyvJbkPQ=";
|
|
|
|
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 ];
|
|
};
|
|
}
|