From a6b938fef5dc1b16c7e9f38bad1221ba7ffb30d6 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 31 Oct 2024 12:00:08 +0000 Subject: [PATCH] bubble-card: init at 2.2.4 --- maintainers/maintainer-list.nix | 6 +++ .../bubble-card/default.nix | 37 +++++++++++++++++++ .../custom-lovelace-modules/default.nix | 2 + 3 files changed, 45 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-lovelace-modules/bubble-card/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c5fa6ec444af2..c8d4731ae2b10 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17596,6 +17596,12 @@ githubId = 43755002; name = "Dmitriy P"; }; + pta2002 = { + email = "pta2002@pta2002.com"; + github = "pta2002"; + githubId = 7443916; + name = "Pedro Alves"; + }; ptival = { email = "valentin.robert.42@gmail.com"; github = "Ptival"; diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/bubble-card/default.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/bubble-card/default.nix new file mode 100644 index 0000000000000..dfd8d36061fa2 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/bubble-card/default.nix @@ -0,0 +1,37 @@ +{ + 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 ]; + }; +} diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix index 6271c3681bb1d..29260ceb90d67 100644 --- a/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix @@ -9,6 +9,8 @@ atomic-calendar-revive = callPackage ./atomic-calendar-revive { }; + bubble-card = callPackage ./bubble-card { }; + button-card = callPackage ./button-card { }; card-mod = callPackage ./card-mod { };