nixos-configs/scopedPackages/lovelace-components/custom-sidebar/default.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2024-10-16 20:12:23 -04:00
{
2025-02-18 15:19:08 -05:00
# nix build inputs
lib,
stdenv,
chore: update flake.lock Flake Inputs: • Updated input 'agsV2': 'github:Aylur/ags/a93f0ac' (2024-10-16) → 'github:Aylur/ags/b7f3896' (2024-10-19) • Updated input 'astal': 'github:Aylur/astal/f763c44' (2024-10-18) → 'github:Aylur/astal/bfb7e27' (2024-10-20) • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar/fcada91' (2024-10-15) → 'github:elchininet/custom-sidebar/80942f5' (2024-10-21) • Updated input 'home-manager': 'github:nix-community/home-manager/09a0c0c' (2024-10-18) → 'github:nix-community/home-manager/1e27f21' (2024-10-20) • Updated input 'hyprland': 'github:hyprwm/Hyprland/0e630e9' (2024-10-17) → 'github:hyprwm/Hyprland/62ee5cc' (2024-10-19) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/79f0e31' (2024-10-18) → 'github:fufexan/nix-gaming/177e270' (2024-10-20) • Updated input 'nix-index-db': 'github:Mic92/nix-index-database/5c54c33' (2024-10-13) → 'github:Mic92/nix-index-database/04f8a11' (2024-10-20) • Updated input 'nixd': 'github:nix-community/nixd/c38702b' (2024-10-01) → 'github:nix-community/nixd/d3c7e56' (2024-10-20) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/5785b6b' (2024-10-16) → 'github:NixOS/nixpkgs/4c2fcb0' (2024-10-18) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/2535bdd' (2024-10-18) → 'github:nix-community/nixpkgs-wayland/7c64c3c' (2024-10-20) • Updated input 'pokemon-colorscripts-src': 'gitlab:phoneybadger/pokemon-colorscripts/0483c85' (2022-10-28) → 'gitlab:phoneybadger/pokemon-colorscripts/5802ff6' (2024-10-19) • Updated input 'sops-nix': 'github:Mic92/sops-nix/06535d0' (2024-10-08) → 'github:Mic92/sops-nix/c504fd7' (2024-10-20) • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython/4bb0658' (2024-10-14) → 'github:thlucas1/SpotifyWebApiPython/8c6aff1' (2024-10-19) • Updated input 'tuya-local-src': 'github:make-all/tuya-local/587d622' (2024-10-18) → 'github:make-all/tuya-local/38744c0' (2024-10-21) Docker Images: • rssbridge/rss-bridge latest: sha256:da785b43f43e4f718c525d71453d6b7011db98c68434f02315cb7ee1ecc88889 → sha256:42b4d1d1e3fb2c361a3a2fe2921a847bbdcd0d6d14a4d411482665fc4560a58d
2024-10-20 21:42:54 -04:00
concatTextFile,
2024-10-16 20:12:23 -04:00
custom-sidebar-src,
2025-02-18 15:19:08 -05:00
# deps
2024-10-16 20:12:23 -04:00
nodejs,
pnpm,
...
}: let
inherit (builtins) fromJSON readFile;
package = fromJSON (readFile "${custom-sidebar-src}/package.json");
2024-10-16 20:12:23 -04:00
in
stdenv.mkDerivation (finalAttrs: {
pname = "custom-sidebar";
version = "${package.version}+${custom-sidebar-src.shortRev}";
2024-10-16 20:12:23 -04:00
src = custom-sidebar-src;
nativeBuildInputs = [
nodejs
pnpm.configHook
];
buildPhase = ''
npm run build
'';
installPhase = ''
mkdir $out
cp ./dist/* $out
'';
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
chore: update sources Flake Inputs: • Updated input 'astal': 'github:Aylur/astal' (2025-02-28) rev: dfd1f23c7562694e571d44c45aa74fcea9b1ba01 → 'github:Aylur/astal' (2025-03-03) rev: 4b283b0045c0752c36c6e8306fc137f2c9f244a4 • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar' (2025-03-02) rev: f52b23e0bc0e735361ee6bfa9652f8f980330768 → 'github:elchininet/custom-sidebar' (2025-03-03) rev: cbb692bb9ff914de0c08929243723ab76dc05f3e • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2025-03-01) rev: 23122ce9b08f46ecc3118df8af17c0dc9d74f4c5 → 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2025-03-03) rev: 0129ab140d63b096f15b3f46e420109f54fbdddb • Updated input 'hyprgrass': 'github:horriblename/hyprgrass' (2025-03-01) rev: 0ecdae6e14b4a43011ef32eb0094aacf664912eb → 'github:horriblename/hyprgrass' (2025-03-03) rev: e59bc280b71be8c45638806f3123fc36834435bc • Updated input 'hyprland': 'github:hyprwm/Hyprland' (2025-03-02) rev: 474bfcbccd2180a1f8157efec093fc28792234b7 → 'github:hyprwm/Hyprland' (2025-03-03) rev: d7e7a292613a4f20218074ff8299dff099a80098 • Updated input 'nix-gaming': 'github:fufexan/nix-gaming' (2025-03-02) rev: d8f2ee44e0038a1b90f4dd381e9f31fe1c112f1a → 'github:fufexan/nix-gaming' (2025-03-03) rev: 5a240f9176826c61afc664e58e55256428a5be93 • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2025-03-01) rev: 303bd8071377433a2d8f76e684ec773d70c5b642 → 'github:NixOS/nixpkgs' (2025-03-03) rev: ba487dbc9d04e0634c64e3b1f0d25839a0a68246 • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2025-03-02) rev: ce16222e04e3581d13a4e2cf99f18dbf7a16137b → 'github:nix-community/nixpkgs-wayland' (2025-03-03) rev: 95f64a6aaf756228bd873d5126e4b6661504bc0c • Updated input 'smartinspect-src': 'github:thlucas1/SmartInspectPython' (2025-01-16) rev: f7da23642cf2565cc9b116ed4b810a5efe09b0c9 → 'github:thlucas1/SmartInspectPython' (2025-03-02) rev: a70a08442b4b82813ecd3bc37b7e8419483901e5 • Updated input 'sops-nix': 'github:Mic92/sops-nix' (2025-02-11) rev: 07af005bb7d60c7f118d9d9f5530485da5d1e975 → 'github:Mic92/sops-nix' (2025-03-03) rev: 3f2412536eeece783f0d0ad3861417f347219f4d • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython' (2025-03-02) rev: 535757d7e90fd49c2ade753e9f0531fa17aaae6d → 'github:thlucas1/SpotifyWebApiPython' (2025-03-02) rev: 617f5e9497d1b0a732af753e4744f80697667917 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2025-02-28) rev: 86d29eabc78f01f3f4a9f36105796ef6171cdac3 → 'github:make-all/tuya-local' (2025-03-03) rev: 5b67d797838ed1e5341bcbeb7388f68e402d5a9b Node modules: @types/node: 22.13.8 -> 22.13.9 pkg-types: 2.0.1 -> 2.1.0 typescript: 5.7.3 -> 5.8.2 @stylistic/eslint-plugin: 4.1.0 -> 4.2.0 typescript-eslint: 8.25.0 -> 8.26.0
2025-03-03 21:13:34 -05:00
hash = "sha256-27YZVzWqn4ViNE6S8ollCI9kYVieoR6LW3xL8NHUb0Q=";
chore: update flake.lock Flake Inputs: • Updated input 'agsV2': 'github:Aylur/ags/a93f0ac' (2024-10-16) → 'github:Aylur/ags/b7f3896' (2024-10-19) • Updated input 'astal': 'github:Aylur/astal/f763c44' (2024-10-18) → 'github:Aylur/astal/bfb7e27' (2024-10-20) • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar/fcada91' (2024-10-15) → 'github:elchininet/custom-sidebar/80942f5' (2024-10-21) • Updated input 'home-manager': 'github:nix-community/home-manager/09a0c0c' (2024-10-18) → 'github:nix-community/home-manager/1e27f21' (2024-10-20) • Updated input 'hyprland': 'github:hyprwm/Hyprland/0e630e9' (2024-10-17) → 'github:hyprwm/Hyprland/62ee5cc' (2024-10-19) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/79f0e31' (2024-10-18) → 'github:fufexan/nix-gaming/177e270' (2024-10-20) • Updated input 'nix-index-db': 'github:Mic92/nix-index-database/5c54c33' (2024-10-13) → 'github:Mic92/nix-index-database/04f8a11' (2024-10-20) • Updated input 'nixd': 'github:nix-community/nixd/c38702b' (2024-10-01) → 'github:nix-community/nixd/d3c7e56' (2024-10-20) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/5785b6b' (2024-10-16) → 'github:NixOS/nixpkgs/4c2fcb0' (2024-10-18) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/2535bdd' (2024-10-18) → 'github:nix-community/nixpkgs-wayland/7c64c3c' (2024-10-20) • Updated input 'pokemon-colorscripts-src': 'gitlab:phoneybadger/pokemon-colorscripts/0483c85' (2022-10-28) → 'gitlab:phoneybadger/pokemon-colorscripts/5802ff6' (2024-10-19) • Updated input 'sops-nix': 'github:Mic92/sops-nix/06535d0' (2024-10-08) → 'github:Mic92/sops-nix/c504fd7' (2024-10-20) • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython/4bb0658' (2024-10-14) → 'github:thlucas1/SpotifyWebApiPython/8c6aff1' (2024-10-19) • Updated input 'tuya-local-src': 'github:make-all/tuya-local/587d622' (2024-10-18) → 'github:make-all/tuya-local/38744c0' (2024-10-21) Docker Images: • rssbridge/rss-bridge latest: sha256:da785b43f43e4f718c525d71453d6b7011db98c68434f02315cb7ee1ecc88889 → sha256:42b4d1d1e3fb2c361a3a2fe2921a847bbdcd0d6d14a4d411482665fc4560a58d
2024-10-20 21:42:54 -04:00
};
passthru.updateScript = concatTextFile {
name = "update";
files = [./update.sh];
executable = true;
destination = "/bin/update";
};
2025-02-18 15:19:08 -05:00
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.
'';
};
2024-10-16 20:12:23 -04:00
})