Loading pkgs/servers/home-assistant/custom-lovelace-modules/custom-sidebar/package.nix 0 → 100644 +57 −0 Original line number Diff line number Diff line { 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 ]; }; }) Loading
pkgs/servers/home-assistant/custom-lovelace-modules/custom-sidebar/package.nix 0 → 100644 +57 −0 Original line number Diff line number Diff line { 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 ]; }; })