feat(hass): update material-symbols
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
8179d88a51
commit
6fd7f5ed48
6 changed files with 23 additions and 17 deletions
|
@ -79,6 +79,13 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
customComponents = builtins.attrValues {
|
||||||
|
inherit
|
||||||
|
(self.legacyPackages.${pkgs.system}.hass-components)
|
||||||
|
material-symbols
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
customLovelaceModules = builtins.attrValues {
|
customLovelaceModules = builtins.attrValues {
|
||||||
inherit
|
inherit
|
||||||
(pkgs.home-assistant-custom-lovelace-modules)
|
(pkgs.home-assistant-custom-lovelace-modules)
|
||||||
|
@ -87,7 +94,6 @@ in {
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
(self.legacyPackages.${pkgs.system}.lovelace-components)
|
(self.legacyPackages.${pkgs.system}.lovelace-components)
|
||||||
material-symbols
|
|
||||||
custom-sidebar
|
custom-sidebar
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
|
@ -9,6 +9,7 @@ lib.makeScope pkgs.newScope (hass: let
|
||||||
in {
|
in {
|
||||||
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
|
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
|
||||||
ha-fallback-conversation = buildHassComponent ./ha-fallback-conversation {};
|
ha-fallback-conversation = buildHassComponent ./ha-fallback-conversation {};
|
||||||
|
material-symbols = buildHassComponent ./material-symbols {};
|
||||||
netdaemon = buildHassComponent ./netdaemon {};
|
netdaemon = buildHassComponent ./netdaemon {};
|
||||||
spotifyplus = import ./spotifyplus ({inherit buildHassComponent;} // inputs);
|
spotifyplus = import ./spotifyplus ({inherit buildHassComponent;} // inputs);
|
||||||
tuya-local = buildHassComponent ./tuya-local {};
|
tuya-local = buildHassComponent ./tuya-local {};
|
||||||
|
|
15
legacyPackages/hass-components/material-symbols/default.nix
Normal file
15
legacyPackages/hass-components/material-symbols/default.nix
Normal 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;
|
||||||
|
}
|
|
@ -7,5 +7,4 @@ lib.makeScope pkgs.newScope (lovelace: let
|
||||||
callPackage = file: lovelace.callPackage file ({} // inputs);
|
callPackage = file: lovelace.callPackage file ({} // inputs);
|
||||||
in {
|
in {
|
||||||
custom-sidebar = callPackage ./custom-sidebar;
|
custom-sidebar = callPackage ./custom-sidebar;
|
||||||
material-symbols = callPackage ./material-symbols;
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -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
|
|
||||||
'';
|
|
||||||
}
|
|
Loading…
Reference in a new issue