Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
903 B
Nix
39 lines
903 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "mini-media-player";
|
|
version = "1.16.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kalkih";
|
|
repo = "mini-media-player";
|
|
rev = "v${version}";
|
|
hash = "sha256-nUZL+zYZoWjhs0Xc/3EeuwewryEl4/g3Dv70Q/85bQc=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-GkkrPeBADjabLiCPvehR6p4Z9LRNgSPInaESd2rLC6U=";
|
|
|
|
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 ];
|
|
};
|
|
}
|