home-assistant-custom-lovelace-modules.custom-sidebar: init at 10.2.0 (#414029)
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
pnpm,
|
||||
nodejs,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "custom-sidebar";
|
||||
version = "10.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elchininet";
|
||||
repo = "custom-sidebar";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-KJ22IAHMIDTyDvm0mPCYymXNEEEUr2Mx+jZTp6wjkko=";
|
||||
};
|
||||
|
||||
pnpmDeps = pnpm.fetchDeps {
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-V0lu91aLMIjcFsDfqXJldQGfJVALErrl49qMnR2hplw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pnpm.configHook
|
||||
nodejs
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
pnpm run build
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out"
|
||||
cp dist/* "$out"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.entrypoint = "custom-sidebar-yaml.js";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Custom plugin that allows you to personalise the Home Assistant's sidebar per user or device basis";
|
||||
homepage = "https://elchininet.github.io/custom-sidebar";
|
||||
downloadPage = "https://github.com/elchininet/custom-sidebar";
|
||||
changelog = "https://github.com/elchininet/custom-sidebar/releases/tag/v${version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with maintainers; [ kranzes ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user