{ lib , buildNpmPackage , fetchFromGitHub }: buildNpmPackage rec { pname = "universal-remote-card"; version = "4.2.0"; src = fetchFromGitHub { owner = "Nerwyn"; repo = "android-tv-card"; rev = version; hash = "sha256-f0t9tSAkCYfJ4y6IMcQu4TfCkBjnSr2x7aZTcgr2klw="; }; patches = [ ./dont-call-git.patch ]; npmDepsHash = "sha256-/+MF+9QWiqJi787k3ta7wN8fhElUxVlZY5SLWxy3VTk="; 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; }; }