Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

home-assistant-custom-lovelace-modules.frigate-hass-card: init at 6.1.2 #371860

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
stdenv,
fetchzip,
}:
stdenv.mkDerivation rec {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please build the module from source. There are a few examples that use yarn among the other lovelace modules.

pname = "frigate-hass-card";
version = "6.1.2";

src = fetchzip {
url = "https://github.com/dermotduffy/frigate-hass-card/releases/download/v${version}/frigate-hass-card.zip";
sha256 = "sha256-9k8xWearg4L0cgTaKv/DFkFsWBMH2uh9bbRq+SYhqMU=";
};
Comment on lines +10 to +13
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fetchFromGitHub and use hash, not sha256.


dontBuild = true;

installPhase = ''
runHook preInstall

mkdir $out
cp * $out/

runHook postInstall
'';

meta = {
description = "A Lovelace card for Frigate in Home Assistant";
homepage = "https://github.com/dermotduffy/frigate-hass-card";
changelog = "https://github.com/dermotduffy/frigate-hass-card/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nealfennimore ];
};
}