ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
39 lines
925 B
Nix
39 lines
925 B
Nix
{ lib
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "universal-remote-card";
|
|
version = "4.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Nerwyn";
|
|
repo = "android-tv-card";
|
|
rev = version;
|
|
hash = "sha256-ze+bsQbPeqfcZ2pWrI4aH3a1+uxus6wC2G9D+uVMrMU=";
|
|
};
|
|
|
|
patches = [ ./dont-call-git.patch ];
|
|
|
|
npmDepsHash = "sha256-X4PuMvQ/ZmyUafLE7ADBPIKIB8ul5M1P23gOQEikTAg=";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
cp dist/universal-remote-card.min.js $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.entrypoint = "universal-remote-card.min.js";
|
|
|
|
meta = with lib; {
|
|
description = "Completely customizable universal remote card for Home Assistant. Supports multiple platforms out of the box";
|
|
homepage = "https://github.com/Nerwyn/android-tv-card";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ k900 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|