nixos-configs/packages/homepage/default.nix
matt1432 8119f9f867
All checks were successful
Discord / discord commits (push) Has been skipped
chore: update sources
Flake Inputs:
    • Updated input 'custom-sidebar-src':
        'github:elchininet/custom-sidebar' (2024-12-16) rev: 9c7b557ec9595748e6bb98cad469ba3567df1026
      → 'github:elchininet/custom-sidebar' (2024-12-23) rev: 87915d78324b6411c6c1c1b969a54772cf30fcc6

    • Updated input 'home-manager':
        'github:nix-community/home-manager' (2024-12-22) rev: 1f74238a4c8e534a1b6be72cb5153043071ffd17
      → 'github:nix-community/home-manager' (2024-12-24) rev: 35b98d20ca8f4ca1f6a2c30b8a2c8bb305a36d84

    • Updated input 'hyprland':
        'github:hyprwm/Hyprland' (2024-12-22) rev: 1830296df3515222bf0f03b90822e3b23e74b775
      → 'github:hyprwm/Hyprland' (2024-12-23) rev: 2e2e2e2cad97eb017ab02f8a67b751e0abe3bb72

    • Updated input 'hyprland/aquamarine':
        'github:hyprwm/aquamarine' (2024-12-17) rev: a132fa41be7ebe797ad758e84d9df068151a723b
      → 'github:hyprwm/aquamarine' (2024-12-22) rev: eecb74dc79bb6752a2a507e6edee3042390a6091

    • Updated input 'hyprland/hyprcursor':
        'github:hyprwm/hyprcursor' (2024-12-16) rev: f388aacd22be4a6e4d634fbaf6f75eb0713d239a
      → 'github:hyprwm/hyprcursor' (2024-12-22) rev: 69270ba8f057d55b0e6c2dca0e165d652856e613

    • Updated input 'hyprland/hyprgraphics':
        'github:hyprwm/hyprgraphics' (2024-12-08) rev: fb2c0268645a77403af3b8a4ce8fa7ba5917f15d
      → 'github:hyprwm/hyprgraphics' (2024-12-22) rev: 6dea3fba08fd704dd624b6d4b261638fb4003c9c

    • Updated input 'hyprland/hyprland-qtutils':
        'github:hyprwm/hyprland-qtutils' (2024-12-11) rev: 3833097e50473a152dd614d4b468886840b4ea78
      → 'github:hyprwm/hyprland-qtutils' (2024-12-22) rev: c77109d7e1ddbcdb87cafd32ce411f76328ae152

    • Updated input 'hyprland/hyprlang':
        'github:hyprwm/hyprlang' (2024-12-16) rev: 16e59c1eb13d9fb6de066f54e7555eb5e8a4aba5
      → 'github:hyprwm/hyprlang' (2024-12-22) rev: 0404833ea18d543df44df935ebf1b497310eb046

    • Updated input 'hyprland/hyprwayland-scanner':
        'github:hyprwm/hyprwayland-scanner' (2024-12-16) rev: 90e87f7fcfcce4862826d60332cbc5e2f87e1f88
      → 'github:hyprwm/hyprwayland-scanner' (2024-12-21) rev: 4d7367b6eee87397e2dbca2e78078dd0a4ef4c61

    • Updated input 'hyprland/pre-commit-hooks':
        'github:cachix/git-hooks.nix' (2024-12-16) rev: 0bb4be58f21ff38fc3cdbd6c778eb67db97f0b99
      → 'github:cachix/git-hooks.nix' (2024-12-21) rev: f0f0dc4920a903c3e08f5bdb9246bb572fcae498

    • Updated input 'hyprland/xdph':
        'github:hyprwm/xdg-desktop-portal-hyprland' (2024-12-17) rev: 3e884d941ca819c1f2e50df8bdae0debded1ed87
      → 'github:hyprwm/xdg-desktop-portal-hyprland' (2024-12-22) rev: d7f18dda5e511749fa1511185db3536208fb1a63

    • Updated input 'hyprpaper':
        'github:hyprwm/hyprpaper' (2024-12-19) rev: f15e67850743fb787fb29238ab33e81ca6b8daa0
      → 'github:hyprwm/hyprpaper' (2024-12-22) rev: 2f305d5f480c12882578e74498301129705a1bb5

    • Updated input 'hyprpaper/hyprgraphics':
        'github:hyprwm/hyprgraphics' (2024-12-08) rev: fb2c0268645a77403af3b8a4ce8fa7ba5917f15d
      → 'github:hyprwm/hyprgraphics' (2024-12-22) rev: 6dea3fba08fd704dd624b6d4b261638fb4003c9c

    • Updated input 'hyprutils':
        'github:hyprwm/hyprutils' (2024-12-21) rev: c3331116ebd0b71df5ae8c6efe9a7f94148b03bf
      → 'github:hyprwm/hyprutils' (2024-12-22) rev: 5e45b1a1b9f02594843b3190deff0a68306525d2

    • Updated input 'nixd':
        'github:nix-community/nixd' (2024-11-28) rev: f12e2f77094ac73c1b1101390c02ec5bcf69ad46
      → 'github:nix-community/nixd' (2024-12-23) rev: f97db14905a050534b2b28355061f790d171f12f

    • Updated input 'nixd/flake-root':
        'github:srid/flake-root' (2024-04-19) rev: bc748b93b86ee76e2032eecda33440ceb2532fcd
      → 'github:srid/flake-root' (2024-08-14) rev: b759a56851e10cb13f6b8e5698af7b59c44be26e

    • Updated input 'pcsd':
        'github:matt1432/nixos-pcsd' (2024-12-18) rev: e306b77b44c461b1b66c5f17f6f52859b5d3374e
      → 'github:matt1432/nixos-pcsd' (2024-12-22) rev: 43b10193bbea70422578871e1fc88b2792297ad5

    • Updated input 'tuya-local-src':
        'github:make-all/tuya-local' (2024-12-22) rev: 02accfd1f41e99706f184c02cc592ddb6864d14c
      → 'github:make-all/tuya-local' (2024-12-23) rev: 61c932e694cde191cb8c19cf07264e871bf14fe9

    • Updated input 'vimplugin-roslyn-nvim-src':
        'github:seblj/roslyn.nvim' (2024-12-18) rev: 1bc4553c3484480f08ea2ced3cebb6bd98e169e7
      → 'github:seblj/roslyn.nvim' (2024-12-24) rev: 47d97e0a3f81b778409e742877b8b03fdf6c762d

    • Updated input 'wakewords-src':
        'github:fwartner/home-assistant-wakewords-collection' (2024-11-23) rev: 629a005bb6b27411dbeebb1e7453f2e327557c20
      → 'github:fwartner/home-assistant-wakewords-collection' (2024-12-24) rev: e6d9c3980a5c68d8e15adff9132641905663fd64

Docker Images:
    • freshrss/freshrss latest:
       sha256:baedf173d60b63c72f93fdb8480ee002d4622cd34103aac6510f45fdff41effe
     → sha256:e7897e90c1e0ab4a68cb643ff509dec4e3b85bbe42e2688ed9f95eb190bcb2b1

    • ghcr.io/linuxserver/bazarr latest:
       sha256:a602332403fcac11717c37ba14fb1852eb0b752d95db67915914fc9dd9e653a8
     → sha256:4e6e74dd25e0b7a0dd20190b1a9e0ec1adb74b56d7b87ce5c9d073f44b2cf2b1

Firefox Addons:
    bitwarden: 2024.11.2 -> 2024.12.3

Node Modules:
    typescript-eslint: 8.18.1 -> 8.18.2

`nix-update` Executions:
    homepage: 0.10.2 -> 0.10.3
2024-12-24 15:32:25 -05:00

95 lines
2.5 KiB
Nix

{
buildNpmPackage,
fetchFromGitHub,
nodePackages,
python3,
stdenv,
cctools,
IOKit ? {},
lib,
enableLocalIcons ? true,
git,
}: let
inherit (lib) optionals optionalString;
installLocalIcons = import ./icons.nix {inherit fetchFromGitHub;};
pname = "homepage-dashboard";
version = "0.10.3";
in
buildNpmPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "gethomepage";
repo = "homepage";
rev = "v${version}";
hash = "sha256-Talr9SEIepgjAPQUeuUskdPb1Bpf15Y0npYjKoiivFk=";
};
npmDepsHash = "sha256-AW7lNkvQeeHkAf6Q23912LiSHJMelR9+4KVSKdlFqd0=";
preBuild = ''
mkdir -p config
'';
postBuild = ''
# Add a shebang to the server js file, then patch the shebang.
sed -i '1s|^|#!/usr/bin/env node\n|' .next/standalone/server.js
patchShebangs .next/standalone/server.js
'';
nativeBuildInputs = [git] ++ optionals stdenv.hostPlatform.isDarwin [cctools];
buildInputs =
[
nodePackages.node-gyp-build
]
++ optionals stdenv.hostPlatform.isDarwin [IOKit];
env.PYTHON = "${python3}/bin/python";
installPhase = ''
runHook preInstall
mkdir -p $out/{share,bin}
cp -r .next/standalone $out/share/homepage/
cp -r public $out/share/homepage/public
mkdir -p $out/share/homepage/.next
cp -r .next/static $out/share/homepage/.next/static
chmod +x $out/share/homepage/server.js
# This patch must be applied here, as it's patching the `dist` directory
# of NextJS. Without this, homepage-dashboard errors when trying to
# write its prerender cache.
#
# This patch ensures that the cache implementation respects the env
# variable `HOMEPAGE_CACHE_DIR`, which is set by default in the
# wrapper below.
pushd $out
git apply ${./prerender_cache_path.patch}
popd
makeWrapper $out/share/homepage/server.js $out/bin/homepage \
--set-default PORT 3000 \
--set-default HOMEPAGE_CONFIG_DIR /var/lib/homepage-dashboard \
--set-default HOMEPAGE_CACHE_DIR /var/cache/homepage-dashboard
${optionalString enableLocalIcons installLocalIcons}
runHook postInstall
'';
doDist = false;
meta = {
description = "Highly customisable dashboard with Docker and service API integrations";
changelog = "https://github.com/gethomepage/homepage/releases/tag/v${version}";
mainProgram = "homepage";
homepage = "https://gethomepage.dev";
license = lib.licenses.gpl3;
};
}