38 lines
845 B
Nix
38 lines
845 B
Nix
|
{
|
||
|
lib,
|
||
|
stdenv,
|
||
|
fetchFromGitHub,
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "bubble-card";
|
||
|
version = "2.2.4";
|
||
|
|
||
|
dontBuild = true;
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "Clooos";
|
||
|
repo = "Bubble-Card";
|
||
|
rev = "v${version}";
|
||
|
hash = "sha256-vsgu1hvtlppADvaFLeB4xQHbP3wBc6H4p5HbeS3JY80=";
|
||
|
};
|
||
|
|
||
|
installPhase = ''
|
||
|
runHook preInstall
|
||
|
|
||
|
mkdir $out
|
||
|
install -m0644 dist/bubble-card.js $out
|
||
|
install -m0644 dist/bubble-pop-up-fix.js $out
|
||
|
|
||
|
runHook postInstall
|
||
|
'';
|
||
|
|
||
|
meta = with lib; {
|
||
|
changelog = "https://github.com/Clooos/bubble-card/releases/tag/v${version}";
|
||
|
description = "Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.";
|
||
|
homepage = "https://github.com/Clooos/Bubble-Card";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ pta2002 ];
|
||
|
};
|
||
|
}
|