feat(hass): update material-symbols
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-10-22 20:28:11 -04:00
parent 8179d88a51
commit 6fd7f5ed48
6 changed files with 26 additions and 20 deletions

View file

@ -79,6 +79,13 @@ in {
};
};
customComponents = builtins.attrValues {
inherit
(self.legacyPackages.${pkgs.system}.hass-components)
material-symbols
;
};
customLovelaceModules = builtins.attrValues {
inherit
(pkgs.home-assistant-custom-lovelace-modules)
@ -87,7 +94,6 @@ in {
inherit
(self.legacyPackages.${pkgs.system}.lovelace-components)
material-symbols
custom-sidebar
;
};

6
flake.lock generated
View file

@ -963,11 +963,11 @@
"material-symbols-src": {
"flake": false,
"locked": {
"lastModified": 1715105278,
"narHash": "sha256-lH4aMzxbqxpRlIwT1/TCj9sdWOEig9W1U8weMI5tPF4=",
"lastModified": 1729634751,
"narHash": "sha256-tgBah1hOIeYhz9oi/fkGkjGnQW1yEApcVWBoFLDsGxQ=",
"owner": "beecho01",
"repo": "material-symbols",
"rev": "c5eba1d6bd30d0baa4e77faa84950af16520efbc",
"rev": "12c2a76b77756f3a33ac763b74c009dbbf810e16",
"type": "github"
},
"original": {

View file

@ -9,6 +9,7 @@ lib.makeScope pkgs.newScope (hass: let
in {
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
ha-fallback-conversation = buildHassComponent ./ha-fallback-conversation {};
material-symbols = buildHassComponent ./material-symbols {};
netdaemon = buildHassComponent ./netdaemon {};
spotifyplus = import ./spotifyplus ({inherit buildHassComponent;} // inputs);
tuya-local = buildHassComponent ./tuya-local {};

View file

@ -0,0 +1,15 @@
{
material-symbols-src,
buildHomeAssistantComponent,
...
}: let
inherit (builtins) fromJSON readFile;
manifest = fromJSON (readFile "${material-symbols-src}/custom_components/material_symbols/manifest.json");
in
buildHomeAssistantComponent {
owner = "beecho01";
inherit (manifest) domain version;
src = material-symbols-src;
}

View file

@ -7,5 +7,4 @@ lib.makeScope pkgs.newScope (lovelace: let
callPackage = file: lovelace.callPackage file ({} // inputs);
in {
custom-sidebar = callPackage ./custom-sidebar;
material-symbols = callPackage ./material-symbols;
})

View file

@ -1,15 +0,0 @@
{
material-symbols-src,
stdenv,
...
}:
stdenv.mkDerivation {
pname = "material-symbols";
version = "0.0.0+${material-symbols-src.shortRev}";
src = material-symbols-src;
phases = ["installPhase"];
installPhase = ''
mkdir $out
cp $src/dist/material-symbols.js $out
'';
}