2024-05-15 15:35:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "android-tv-card";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "3.9.2";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Nerwyn";
|
|
|
|
repo = "android-tv-card";
|
|
|
|
rev = version;
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-kqMHwUyQGfD8dL6VZPFCrQ91/h7j5KJVnAL0hHNk/qg=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./dont-call-git.patch ];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
npmDepsHash = "sha256-zoEZibm0i3AgM3mGgwIIkqtsNkMXWErUfQ9Kaprs+Ag=";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
cp dist/android-tv-card.min.js $out
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.entrypoint = "android-tv-card.min.js";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Universal Customizable TV Remote Card, with HA actions, super configurable touchpad, slider, haptics, and keyboard";
|
|
|
|
homepage = "https://github.com/Nerwyn/android-tv-card";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ k900 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|