lol

home-assistant-custom-lovelace-modules.custom-sidebar: init at 10.2.0 (#414029)

authored by

Martin Weinelt and committed by
GitHub
168a5100 92abbdd5

+57
+57
pkgs/servers/home-assistant/custom-lovelace-modules/custom-sidebar/package.nix
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchFromGitHub, 5 + pnpm, 6 + nodejs, 7 + }: 8 + 9 + stdenvNoCC.mkDerivation (finalAttrs: { 10 + pname = "custom-sidebar"; 11 + version = "10.2.0"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "elchininet"; 15 + repo = "custom-sidebar"; 16 + tag = "v${finalAttrs.version}"; 17 + hash = "sha256-KJ22IAHMIDTyDvm0mPCYymXNEEEUr2Mx+jZTp6wjkko="; 18 + }; 19 + 20 + pnpmDeps = pnpm.fetchDeps { 21 + inherit (finalAttrs) pname version src; 22 + hash = "sha256-V0lu91aLMIjcFsDfqXJldQGfJVALErrl49qMnR2hplw="; 23 + }; 24 + 25 + nativeBuildInputs = [ 26 + pnpm.configHook 27 + nodejs 28 + ]; 29 + 30 + buildPhase = '' 31 + runHook preBuild 32 + 33 + pnpm run build 34 + 35 + runHook postBuild 36 + ''; 37 + 38 + installPhase = '' 39 + runHook preInstall 40 + 41 + mkdir -p "$out" 42 + cp dist/* "$out" 43 + 44 + runHook postInstall 45 + ''; 46 + 47 + passthru.entrypoint = "custom-sidebar-yaml.js"; 48 + 49 + meta = with lib; { 50 + description = "Custom plugin that allows you to personalise the Home Assistant's sidebar per user or device basis"; 51 + homepage = "https://elchininet.github.io/custom-sidebar"; 52 + downloadPage = "https://github.com/elchininet/custom-sidebar"; 53 + changelog = "https://github.com/elchininet/custom-sidebar/releases/tag/v${version}"; 54 + license = lib.licenses.asl20; 55 + maintainers = with maintainers; [ kranzes ]; 56 + }; 57 + })