36 lines
931 B
Nix
36 lines
931 B
Nix
{
|
|
buildHomeAssistantComponent,
|
|
fetchFromGitHub,
|
|
pkgs,
|
|
namespace,
|
|
...
|
|
}:
|
|
buildHomeAssistantComponent rec {
|
|
owner = "Wouter0100";
|
|
domain = "nanokvm";
|
|
version = "v0.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = owner;
|
|
repo = "homeassistant-nanokvm";
|
|
rev = "bdd2ca39d8050e4b38bb7917ee4034f2fcd49471";
|
|
hash = "sha256-S6g9mfPEixqeGQkXVK8PZJ/dnEC5ThKtbELAIAhCANM=";
|
|
};
|
|
|
|
nativeBuildInputs = with pkgs.${namespace}; [
|
|
python-nanokvm
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace custom_components/nanokvm/manifest.json \
|
|
--replace-fail '"nanokvm>=0.0.4"' '"nanokvm"'
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Wouter0100/homeassistant-nanokvm/releases/tag/${version}";
|
|
description = "This integration allows you to control and monitor your Sipeed NanoKVM device from Home Assistant.";
|
|
homepage = "https://github.com/Wouter0100/homeassistant-nanokvm";
|
|
maintainers = [ ];
|
|
};
|
|
}
|