504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
897 B
Nix
37 lines
897 B
Nix
{ lib
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "mini-media-player";
|
|
version = "1.16.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kalkih";
|
|
repo = "mini-media-player";
|
|
rev = "v${version}";
|
|
hash = "sha256-mBxK/Y+gesaJwPYHB4P8FCkyfoV9lwC8jAzPZJV+B+M=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-kuEgX5PX7RKhaJPzx+GW37TiSISvz+51tKGacvAMlfg=";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
cp -v ./dist/mini-media-player-bundle.js $out/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.entrypoint = "mini-media-player-bundle.js";
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/kalkih/mini-media-player/releases/tag/v${version}";
|
|
description = "Minimalistic media card for Home Assistant Lovelace UI";
|
|
homepage = "https://github.com/kalkih/mini-media-player";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|