Skip to content

Commit

Permalink
home-assistant-custom-lovelace-modules.sankey-chart: init at 3.5.0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Oct 31, 2024
2 parents 9483abe + 87c65eb commit c48be10
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

rmv-card = callPackage ./rmv-card { };

sankey-chart = callPackage ./sankey-chart { };

template-entity-row = callPackage ./template-entity-row { };

universal-remote-card = callPackage ./universal-remote-card { };
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:

buildNpmPackage rec {
pname = "sankey-chart";
version = "3.5.0";

src = fetchFromGitHub {
owner = "MindFreeze";
repo = "ha-sankey-chart";
rev = "v${version}";
hash = "sha256-cQZPWyXMwJZAhsWYtNLGXpelvmeWlyQbaoqYREwfeNg=";
};

npmDepsHash = "sha256-GXhxMq0h/AmLGIiq2N/hSi+4O9uNDPawaSdPmJ8OyX8=";

installPhase = ''
runHook preInstall
mkdir $out/
cp -v dist/ha-sankey-chart.js $out/sankey-chart.js
runHook postInstall
'';

meta = {
description = "Home Assistant lovelace card to display a sankey chart.";
homepage = "https://github.com/MindFreeze/ha-sankey-chart";
changelog = "https://github.com/MindFreeze/ha-sankey-chart/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
platforms = lib.platforms.all;
};
}

0 comments on commit c48be10

Please sign in to comment.