nixos-configs/scopedPackages/lovelace-components/custom-sidebar/default.nix
matt1432 a4829b0bab
All checks were successful
Discord / discord commits (push) Has been skipped
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

56 lines
1.2 KiB
Nix

{
# nix build inputs
lib,
stdenv,
concatTextFile,
custom-sidebar-src,
# deps
nodejs,
pnpm,
...
}: let
inherit (builtins) fromJSON readFile;
package = fromJSON (readFile "${custom-sidebar-src}/package.json");
in
stdenv.mkDerivation (finalAttrs: {
pname = "custom-sidebar";
version = "${package.version}+${custom-sidebar-src.shortRev}";
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;
hash = "sha256-27YZVzWqn4ViNE6S8ollCI9kYVieoR6LW3xL8NHUb0Q=";
};
passthru.updateScript = concatTextFile {
name = "update";
files = [./update.sh];
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.
'';
};
})