From 13453f683978efe5b6fc217d42c57fc31427350b Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 18 Feb 2025 15:19:08 -0500 Subject: [PATCH] docs: add meta to all scoped packages --- packages/gpu-screen-recorder/generic.nix | 4 ++-- scopedPackages/dracula/bat.nix | 14 ++++++++++++-- scopedPackages/dracula/git.nix | 12 +++++++++++- scopedPackages/dracula/gtk.nix | 2 +- scopedPackages/dracula/plymouth.nix | 13 ++++++++++++- scopedPackages/dracula/sioyek.nix | 12 +++++++++++- scopedPackages/dracula/wallpaper.nix | 12 +++++++++++- .../extended-ollama-conversation/default.nix | 11 ++++++++++- .../ha-fallback-conversation/default.nix | 13 ++++++++++++- .../hass-components/material-symbols/default.nix | 13 ++++++++++++- .../hass-components/netdaemon/default.nix | 13 ++++++++++++- .../hass-components/spotifyplus/default.nix | 14 +++++++++++++- .../hass-components/spotifyplus/smartinspect.nix | 12 ++++++++++++ .../hass-components/spotifyplus/spotifywebapi.nix | 11 +++++++++++ .../hass-components/tuya-local/default.nix | 13 ++++++++++++- .../hass-components/tuya-local/overrides.nix | 4 +++- .../hass-components/yamaha-soundbar/default.nix | 11 ++++++++++- .../big-slider-card/default.nix | 12 +++++++++++- .../lovelace-components/custom-sidebar/default.nix | 14 +++++++++++++- .../material-rounded-theme/default.nix | 10 ++++++++++ scopedPackages/mpv-scripts/kdialog-open-files.nix | 13 ++++++++++++- scopedPackages/mpv-scripts/modernz.nix | 14 +++++++++++++- scopedPackages/mpv-scripts/persist-properties.nix | 10 ++++++++++ scopedPackages/mpv-scripts/pointer-event.nix | 10 ++++++++++ scopedPackages/mpv-scripts/touch-gestures.nix | 10 ++++++++++ scopedPackages/mpv-scripts/undo-redo.nix | 13 ++++++++++++- 26 files changed, 268 insertions(+), 22 deletions(-) diff --git a/packages/gpu-screen-recorder/generic.nix b/packages/gpu-screen-recorder/generic.nix index 493c3e23..4f7cf590 100644 --- a/packages/gpu-screen-recorder/generic.nix +++ b/packages/gpu-screen-recorder/generic.nix @@ -105,10 +105,10 @@ in mainProgram = pname; license = lib.licenses.gpl3Only; platforms = ["x86_64-linux"]; - homepage = "https://git.dec05eba.com/gpu-screen-recorder/about/"; + homepage = "https://git.dec05eba.com/gpu-screen-recorder/about"; description = '' Screen recorder that has minimal impact on system performance by recording - a window using the GPU only + a window using the GPU only. ''; }; } diff --git a/scopedPackages/dracula/bat.nix b/scopedPackages/dracula/bat.nix index 9dc91b59..d4430a8c 100644 --- a/scopedPackages/dracula/bat.nix +++ b/scopedPackages/dracula/bat.nix @@ -1,7 +1,9 @@ { - bat-theme-src, - mkVersion, + # nix build inputs + lib, stdenv, + mkVersion, + bat-theme-src, ... }: stdenv.mkDerivation { @@ -13,4 +15,12 @@ stdenv.mkDerivation { installPhase = '' cat ./Dracula.tmTheme > $out ''; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/matt1432/bat"; + description = '' + Dark theme for bat based on the Dracula Sublime theme. + ''; + }; } diff --git a/scopedPackages/dracula/git.nix b/scopedPackages/dracula/git.nix index 5c36afa2..26c4ba90 100644 --- a/scopedPackages/dracula/git.nix +++ b/scopedPackages/dracula/git.nix @@ -1,7 +1,9 @@ { + # nix build inputs + lib, stdenv, - git-theme-src, mkVersion, + git-theme-src, ... }: stdenv.mkDerivation { @@ -19,4 +21,12 @@ stdenv.mkDerivation { cat ./config/gitconfig > $out ''; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/dracula/git"; + description = '' + Dark theme for Git. + ''; + }; } diff --git a/scopedPackages/dracula/gtk.nix b/scopedPackages/dracula/gtk.nix index 59adb23a..18b00083 100644 --- a/scopedPackages/dracula/gtk.nix +++ b/scopedPackages/dracula/gtk.nix @@ -1,6 +1,6 @@ { - gtk-theme-src, pkgs, + gtk-theme-src, ... }: pkgs.dracula-theme.overrideAttrs (o: { diff --git a/scopedPackages/dracula/plymouth.nix b/scopedPackages/dracula/plymouth.nix index a6dcd7d7..606772c1 100644 --- a/scopedPackages/dracula/plymouth.nix +++ b/scopedPackages/dracula/plymouth.nix @@ -1,7 +1,9 @@ { + # nix build inputs + lib, stdenv, - dracula-plymouth-src, mkVersion, + dracula-plymouth-src, ... }: stdenv.mkDerivation { @@ -18,4 +20,13 @@ stdenv.mkDerivation { mkdir -p $out/share/plymouth/themes cp -a ./dracula $out/share/plymouth/themes/ ''; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/matt1432/dracula-plymouth"; + description = '' + Dark theme for Plymouth. Forked by me to add a password prompt and + black background for more seemless boot sequence. + ''; + }; } diff --git a/scopedPackages/dracula/sioyek.nix b/scopedPackages/dracula/sioyek.nix index 2f07df6b..14e978e5 100644 --- a/scopedPackages/dracula/sioyek.nix +++ b/scopedPackages/dracula/sioyek.nix @@ -1,7 +1,9 @@ { + # nix build inputs + lib, + stdenv, mkVersion, sioyek-theme-src, - stdenv, ... }: stdenv.mkDerivation { @@ -13,4 +15,12 @@ stdenv.mkDerivation { installPhase = '' cat ./dracula.config > $out ''; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/dracula/sioyek"; + description = '' + Dark theme for Sioyek. + ''; + }; } diff --git a/scopedPackages/dracula/wallpaper.nix b/scopedPackages/dracula/wallpaper.nix index 9b75f1cf..6c842709 100644 --- a/scopedPackages/dracula/wallpaper.nix +++ b/scopedPackages/dracula/wallpaper.nix @@ -1,6 +1,8 @@ { - fetchurl, + # nix build inputs + lib, stdenv, + fetchurl, ... }: stdenv.mkDerivation { @@ -16,4 +18,12 @@ stdenv.mkDerivation { installPhase = '' cp -a $src $out ''; + + meta = { + license = lib.licenses.cc-by-sa-40; + homepage = "https://github.com/aynp/dracula-wallpapers"; + description = '' + Wallpaper based on the Dracula Theme. + ''; + }; } diff --git a/scopedPackages/hass-components/extended-ollama-conversation/default.nix b/scopedPackages/hass-components/extended-ollama-conversation/default.nix index 7fd18acf..180a20bd 100644 --- a/scopedPackages/hass-components/extended-ollama-conversation/default.nix +++ b/scopedPackages/hass-components/extended-ollama-conversation/default.nix @@ -1,6 +1,8 @@ { - extended-ollama-conversation-src, + # nix build inputs buildHomeAssistantComponent, + extended-ollama-conversation-src, + # deps python3Packages, ... }: let @@ -24,4 +26,11 @@ in ollama openai ]; + + meta = { + homepage = "https://github.com/TheNimaj/extended_ollama_conversation"; + description = '' + Home Assistant custom component of conversation agent. It uses Ollama to control your devices. + ''; + }; } diff --git a/scopedPackages/hass-components/ha-fallback-conversation/default.nix b/scopedPackages/hass-components/ha-fallback-conversation/default.nix index e88bada4..2a068d60 100644 --- a/scopedPackages/hass-components/ha-fallback-conversation/default.nix +++ b/scopedPackages/hass-components/ha-fallback-conversation/default.nix @@ -1,6 +1,9 @@ +# FIXME: deprecated { - ha-fallback-conversation-src, + # nix build inputs + lib, buildHomeAssistantComponent, + ha-fallback-conversation-src, ... }: let inherit (builtins) fromJSON readFile; @@ -13,4 +16,12 @@ in inherit (manifest) domain version; src = ha-fallback-conversation-src; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/m50/ha-fallback-conversation"; + description = '' + HomeAssistant Assist Fallback Conversation Agent. + ''; + }; } diff --git a/scopedPackages/hass-components/material-symbols/default.nix b/scopedPackages/hass-components/material-symbols/default.nix index 907b5532..68d28b33 100644 --- a/scopedPackages/hass-components/material-symbols/default.nix +++ b/scopedPackages/hass-components/material-symbols/default.nix @@ -1,6 +1,8 @@ { - material-symbols-src, + # nix build inputs + lib, buildHomeAssistantComponent, + material-symbols-src, ... }: let inherit (builtins) fromJSON readFile; @@ -12,4 +14,13 @@ in inherit (manifest) domain version; src = material-symbols-src; + + meta = { + license = lib.licenses.cc-by-nc-sa-40; + homepage = "https://github.com/beecho01/material-symbols"; + description = '' + Material Symbols for Home Assistant is a collection of 13,803 Google Material Symbols + for use within Home Assistant. It uses the icon-set produced and maintained by iconify. + ''; + }; } diff --git a/scopedPackages/hass-components/netdaemon/default.nix b/scopedPackages/hass-components/netdaemon/default.nix index 91e30fac..4eccd436 100644 --- a/scopedPackages/hass-components/netdaemon/default.nix +++ b/scopedPackages/hass-components/netdaemon/default.nix @@ -1,6 +1,9 @@ { - netdaemon-src, + # nix build inputs + lib, buildHomeAssistantComponent, + netdaemon-src, + # deps python3Packages, ... }: let @@ -18,4 +21,12 @@ in propagatedBuildInputs = with python3Packages; [ awesomeversion ]; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/net-daemon/netdaemon"; + description = '' + An application daemon for Home Assistant written in .NET. + ''; + }; } diff --git a/scopedPackages/hass-components/spotifyplus/default.nix b/scopedPackages/hass-components/spotifyplus/default.nix index bd422eb4..fd735cee 100644 --- a/scopedPackages/hass-components/spotifyplus/default.nix +++ b/scopedPackages/hass-components/spotifyplus/default.nix @@ -1,6 +1,9 @@ { - spotifyplus-src, + # nix build inputs + lib, buildHomeAssistantComponent, + spotifyplus-src, + # deps python3Packages, ... }: let @@ -26,4 +29,13 @@ in smartinspect # overridden in python3Packages spotifywebapi # overridden in python3Packages ]; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/thlucas1/homeassistantcomponent_spotifyplus"; + description = '' + Home Assistant integration for Spotify Player control, services, + and soundtouchplus integration support. + ''; + }; } diff --git a/scopedPackages/hass-components/spotifyplus/smartinspect.nix b/scopedPackages/hass-components/spotifyplus/smartinspect.nix index d2ff697a..eb193f17 100644 --- a/scopedPackages/hass-components/spotifyplus/smartinspect.nix +++ b/scopedPackages/hass-components/spotifyplus/smartinspect.nix @@ -1,5 +1,8 @@ { + # nix build inputs + lib, smartinspect-src, + # deps python3Packages, ... }: let @@ -20,4 +23,13 @@ in pythonImportsCheck = [ "smartinspectpython" ]; + + meta = { + license = lib.licenses.bsd2; + homepage = "https://github.com/thlucas1/SmartInspectPython"; + description = '' + Provides Python code execution tracing and diagnostics support via the + SmartInspect Console Viewer. + ''; + }; } diff --git a/scopedPackages/hass-components/spotifyplus/spotifywebapi.nix b/scopedPackages/hass-components/spotifyplus/spotifywebapi.nix index d2afb188..8057628c 100644 --- a/scopedPackages/hass-components/spotifyplus/spotifywebapi.nix +++ b/scopedPackages/hass-components/spotifyplus/spotifywebapi.nix @@ -1,5 +1,8 @@ { + # nix build inputs + lib, spotifywebapi-src, + # deps python3Packages, ... }: let @@ -30,4 +33,12 @@ in pythonImportsCheck = [ "spotifywebapipython" ]; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/thlucas1/SpotifyWebApiPython"; + description = '' + A Spotify Web Api Client for Python. + ''; + }; } diff --git a/scopedPackages/hass-components/tuya-local/default.nix b/scopedPackages/hass-components/tuya-local/default.nix index 53010744..5b8b1f81 100644 --- a/scopedPackages/hass-components/tuya-local/default.nix +++ b/scopedPackages/hass-components/tuya-local/default.nix @@ -1,6 +1,9 @@ { - tuya-local-src, + # nix build inputs + lib, buildHomeAssistantComponent, + tuya-local-src, + # deps python3Packages, ... }: let @@ -19,4 +22,12 @@ in tinytuya tuya-device-sharing-sdk ]; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/make-all/tuya-local"; + description = '' + Local support for Tuya devices in Home Assistant. + ''; + }; } diff --git a/scopedPackages/hass-components/tuya-local/overrides.nix b/scopedPackages/hass-components/tuya-local/overrides.nix index 589d4c29..443c2ce2 100644 --- a/scopedPackages/hass-components/tuya-local/overrides.nix +++ b/scopedPackages/hass-components/tuya-local/overrides.nix @@ -1,4 +1,5 @@ -{pkgs, ...}: python3Packages: final: prev: { +{...}: python3Packages: final: prev: { + /* Keep this here to make it easier to always have the right version tinytuya = prev.tinytuya.overridePythonAttrs (o: rec { version = "1.16.1"; src = pkgs.fetchFromGitHub { @@ -8,4 +9,5 @@ hash = "sha256-+ReTNPKMYUXNA5tu7kZM8/7Bh4XjHSjZTiW8ROHkk5M="; }; }); + */ } diff --git a/scopedPackages/hass-components/yamaha-soundbar/default.nix b/scopedPackages/hass-components/yamaha-soundbar/default.nix index 5992f4a9..9551601a 100644 --- a/scopedPackages/hass-components/yamaha-soundbar/default.nix +++ b/scopedPackages/hass-components/yamaha-soundbar/default.nix @@ -1,6 +1,8 @@ { - yamaha-soundbar-src, + # nix build inputs buildHomeAssistantComponent, + yamaha-soundbar-src, + # deps python3Packages, ... }: let @@ -19,4 +21,11 @@ in chardet validators ]; + + meta = { + homepage = "https://github.com/osk2/yamaha-soundbar"; + description = '' + Yamaha soundbar integration for Home Assistant. + ''; + }; } diff --git a/scopedPackages/lovelace-components/big-slider-card/default.nix b/scopedPackages/lovelace-components/big-slider-card/default.nix index 0c8bdc2b..631d49b8 100644 --- a/scopedPackages/lovelace-components/big-slider-card/default.nix +++ b/scopedPackages/lovelace-components/big-slider-card/default.nix @@ -1,4 +1,6 @@ { + # nix build inputs + lib, stdenv, fetchurl, ... @@ -10,7 +12,7 @@ in inherit pname version; src = fetchurl { - url = "https://github.com/nicufarmache/lovelace-${pname}/releases/download/${version}/${pname}.js"; + url = "https://github.com/nicufarmache/lovelace-big-slider-card/releases/download/${version}/${pname}.js"; hash = "sha256-uNlgsiubLXG1VzhNCSeKo/5TmQF1fzFHjTYfutEXn1M="; }; @@ -20,4 +22,12 @@ in mkdir $out cp $src $out/${pname}.js ''; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/nicufarmache/lovelace-big-slider-card"; + description = '' + A card with a big slider for light entities in Home Assistant. + ''; + }; } diff --git a/scopedPackages/lovelace-components/custom-sidebar/default.nix b/scopedPackages/lovelace-components/custom-sidebar/default.nix index 51b753bf..39653342 100644 --- a/scopedPackages/lovelace-components/custom-sidebar/default.nix +++ b/scopedPackages/lovelace-components/custom-sidebar/default.nix @@ -1,9 +1,12 @@ { + # nix build inputs + lib, + stdenv, concatTextFile, custom-sidebar-src, + # deps nodejs, pnpm, - stdenv, ... }: let inherit (builtins) fromJSON readFile; @@ -41,4 +44,13 @@ in executable = true; destination = "/bin/update"; }; + + meta = { + license = lib.licenses.asl20; + homepage = "https://github.com/elchininet/custom-sidebar"; + description = '' + Custom HACS plugin that allows you to personalise the + Home Assistant's sidebar per user or device basis. + ''; + }; }) diff --git a/scopedPackages/lovelace-components/material-rounded-theme/default.nix b/scopedPackages/lovelace-components/material-rounded-theme/default.nix index 3ffd25eb..27591840 100644 --- a/scopedPackages/lovelace-components/material-rounded-theme/default.nix +++ b/scopedPackages/lovelace-components/material-rounded-theme/default.nix @@ -1,4 +1,6 @@ { + # nix build inputs + lib, buildNpmPackage, fetchFromGitHub, ... @@ -27,4 +29,12 @@ in mkdir $out cp ./dist/* $out ''; + + meta = { + license = lib.licenses.asl20; + homepage = "https://github.com/Nerwyn/material-rounded-theme"; + description = '' + Material Design 3 Colors and Components in Home Assistant. + ''; + }; } diff --git a/scopedPackages/mpv-scripts/kdialog-open-files.nix b/scopedPackages/mpv-scripts/kdialog-open-files.nix index 386ca331..ebc51853 100644 --- a/scopedPackages/mpv-scripts/kdialog-open-files.nix +++ b/scopedPackages/mpv-scripts/kdialog-open-files.nix @@ -1,6 +1,8 @@ { - fetchurl, + # nix build inputs + lib, buildLua, + fetchurl, ... }: buildLua rec { @@ -13,4 +15,13 @@ buildLua rec { hash = "sha256-qJ/Myx0mdaRsWWd+4Mk1/SUSSI/uqQdg/vLZo2pkEwA="; }; scriptPath = "${src}"; + + meta = { + license = lib.licenses.unlicense; + homepage = "https://gist.github.com/ntasos/d1d846abd7d25e4e83a78d22ee067a22"; + description = '' + Use KDE KDialog to add files to playlist, subtitles to playing video or open URLs. + Based on 'mpv-open-file-dialog' . + ''; + }; } diff --git a/scopedPackages/mpv-scripts/modernz.nix b/scopedPackages/mpv-scripts/modernz.nix index 13a49d26..0184d45b 100644 --- a/scopedPackages/mpv-scripts/modernz.nix +++ b/scopedPackages/mpv-scripts/modernz.nix @@ -1,7 +1,9 @@ { + # nix build inputs + lib, buildLua, - makeFontsConf, mkVersion, + makeFontsConf, modernz-src, ... }: @@ -24,4 +26,14 @@ buildLua (finalAttrs: { fontDirectories = ["${finalAttrs.finalPackage}/share/fonts"]; })) ]; + + meta = { + license = lib.licenses.lgpl21; + homepage = "https://github.com/Samillion/ModernZ"; + description = '' + A sleek and modern OSC for mpv designed to enhance functionality + by adding more features, all while preserving the core standards + of mpv's OSC. + ''; + }; }) diff --git a/scopedPackages/mpv-scripts/persist-properties.nix b/scopedPackages/mpv-scripts/persist-properties.nix index 79fe435c..0ac2a161 100644 --- a/scopedPackages/mpv-scripts/persist-properties.nix +++ b/scopedPackages/mpv-scripts/persist-properties.nix @@ -1,4 +1,6 @@ { + # nix build inputs + lib, buildLua, mkVersion, mpv-persist-properties-src, @@ -9,4 +11,12 @@ buildLua { version = mkVersion mpv-persist-properties-src; src = mpv-persist-properties-src; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/d87/mpv-persist-properties"; + description = '' + Keeps selected property values (like volume) between player sessions. + ''; + }; } diff --git a/scopedPackages/mpv-scripts/pointer-event.nix b/scopedPackages/mpv-scripts/pointer-event.nix index 40554843..add8a174 100644 --- a/scopedPackages/mpv-scripts/pointer-event.nix +++ b/scopedPackages/mpv-scripts/pointer-event.nix @@ -1,4 +1,6 @@ { + # nix build inputs + lib, buildLua, mkVersion, mpv-pointer-event-src, @@ -9,4 +11,12 @@ buildLua { version = mkVersion mpv-pointer-event-src; src = mpv-pointer-event-src; + + meta = { + license = lib.licenses.gpl2; + homepage = "https://github.com/christoph-heinrich/mpv-pointer-event"; + description = '' + Mouse/Touch input event detection for mpv. + ''; + }; } diff --git a/scopedPackages/mpv-scripts/touch-gestures.nix b/scopedPackages/mpv-scripts/touch-gestures.nix index 9b437457..eddf70e8 100644 --- a/scopedPackages/mpv-scripts/touch-gestures.nix +++ b/scopedPackages/mpv-scripts/touch-gestures.nix @@ -1,4 +1,6 @@ { + # nix build inputs + lib, buildLua, mkVersion, mpv-touch-gestures-src, @@ -9,4 +11,12 @@ buildLua { version = mkVersion mpv-touch-gestures-src; src = mpv-touch-gestures-src; + + meta = { + license = lib.licenses.gpl2; + homepage = "https://github.com/christoph-heinrich/mpv-touch-gestures"; + description = '' + Touch gestures for mpv. + ''; + }; } diff --git a/scopedPackages/mpv-scripts/undo-redo.nix b/scopedPackages/mpv-scripts/undo-redo.nix index 7c4fcc62..c57020d5 100644 --- a/scopedPackages/mpv-scripts/undo-redo.nix +++ b/scopedPackages/mpv-scripts/undo-redo.nix @@ -1,7 +1,9 @@ { + # nix build inputs + lib, buildLua, - eisa-scripts-src, mkVersion, + eisa-scripts-src, ... }: buildLua rec { @@ -10,4 +12,13 @@ buildLua rec { src = eisa-scripts-src; scriptPath = "${src}/scripts/UndoRedo.lua"; + + meta = { + license = lib.licenses.bsd2; + homepage = "https://github.com/Eisa01/mpv-scripts?tab=readme-ov-file#undoredo"; + description = '' + Accidentally seeked? No worries, simply undo.. + Undo is not enough to fix your accidental seek? Well now you can redo as well.. + ''; + }; }