nixpkgs/pkgs/servers/home-assistant/custom-components/browser-mod/package.nix

42 lines
1,007 B
Nix

{
lib,
buildHomeAssistantComponent,
fetchFromGitHub,
fetchNpmDeps,
nodejs,
npmHooks,
}:
buildHomeAssistantComponent rec {
owner = "thomasloven";
domain = "browser_mod";
version = "2.13.4";
src = fetchFromGitHub {
inherit owner;
repo = "hass-browser_mod";
tag = "v${version}";
hash = "sha256-AE23WTzVt3nF3oLeUdQ9p0kr+4q/Ymko82OOIxaNOcQ=";
};
nativeBuildInputs = [
nodejs
npmHooks.npmBuildHook
npmHooks.npmConfigHook
];
npmDeps = fetchNpmDeps {
inherit src;
hash = "sha256-1MlUUYkLBSsoeJRH56LXLwXWcrMVKYzW4HcayrR1tI8=";
};
npmBuildScript = "build";
meta = {
description = "Home Assistant integration to turn your browser into a controllable entity and media player";
homepage = "https://github.com/thomasloven/hass-browser_mod";
changelog = "https://github.com/thomasloven/hass-browser_mod/blob/${src.tag}/CHANGELOG.md";
maintainers = with lib.maintainers; [ SuperSandro2000 ];
license = lib.licenses.mit;
};
}