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 'custom-sidebar-src': 'github:elchininet/custom-sidebar' (2025-03-03) rev: cbb692bb9ff914de0c08929243723ab76dc05f3e → 'github:elchininet/custom-sidebar' (2025-03-09) rev: 24eba4a1bb562bffc86311c609fb386e474982e7 • Updated input 'home-manager': 'github:nix-community/home-manager' (2025-03-08) rev: 7f4c60a3d6e548dbc13666565c22cb3f8dcdad44 → 'github:nix-community/home-manager' (2025-03-09) rev: cf47e7ea2182c5638fdd1b42de329cc7d185cf8b • Updated input 'kompass': 'github:kotontrion/kompass' (2025-03-07) rev: c3079b5d96c2d0b450c718f971264974a5071f9a → 'github:kotontrion/kompass' (2025-03-09) rev: ba7cd8f69ade8aade3d354d5f68b4ccec0b4284f • Updated input 'nix-gaming': 'github:fufexan/nix-gaming' (2025-03-07) rev: 0e78e723bdf5a13dc45f3a6b994715b871c3f650 → 'github:fufexan/nix-gaming' (2025-03-09) rev: 6413c80d27072c5e714f48d0f0c3ba332397b7a0 • Updated input 'nix-index-db': 'github:Mic92/nix-index-database' (2025-03-08) rev: eeaf10849c3a0435323216885c0df7569dc95cb9 → 'github:Mic92/nix-index-database' (2025-03-09) rev: 296a2c992a28b37427d062ade6e20d467e479e3f • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2025-03-06) rev: 10069ef4cf863633f57238f179a0297de84bd8d3 → 'github:NixOS/nixpkgs' (2025-03-07) rev: 36fd87baa9083f34f7f5027900b62ee6d09b1f2f • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2025-03-08) rev: 9383414b9769faee22cedf0ff2b4e52cd7615b74 → 'github:nix-community/nixpkgs-wayland' (2025-03-09) rev: 1308354da1b065cf245faa237cbfc2946b98660e • Updated input 'spotifyplus-src': 'github:thlucas1/homeassistantcomponent_spotifyplus' (2025-03-07) rev: 54faa6eb694ddba31274036dfb60f6e63c57f56a → 'github:thlucas1/homeassistantcomponent_spotifyplus' (2025-03-09) rev: 2c2742e98d53f00bc9f0e5293f4e384b86ef24a9 • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython' (2025-03-08) rev: 0afe814eaf7faac6a8992266e0525a23dae8cbf1 → 'github:thlucas1/SpotifyWebApiPython' (2025-03-08) rev: 341d10a4f9dc0d424f78f2f5833515b0abdf2876 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2025-03-06) rev: 934321b6d681783a8c21a97bc8346dd94ffa6fef → 'github:make-all/tuya-local' (2025-03-09) rev: 88ec0d65cd3734e7aa0ef28dd666d4c5291d0dcf • Updated input 'vimplugin-roslyn-nvim-src': 'github:seblj/roslyn.nvim' (2025-02-20) rev: 633a61c30801a854cf52f4492ec8702a8c4ec0e9 → 'github:seblj/roslyn.nvim' (2025-03-09) rev: 9502d5eea9fe6919deb9f5a1732a1e1cfae6860a
2025-03-09 13:05:00 -04:00
hash = "sha256-UmPchuCjXEAJO5cPADKmkcBqUBmppgyowQlsPKpwV68=";
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
})