nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 111 lines 4.2 kB view raw
1diff --git a/package.json b/package.json 2index bb093c43..deeb4b8b 100644 3--- a/package.json 4+++ b/package.json 5@@ -66,6 +66,9 @@ 6 "pnpm": { 7 "onlyBuiltDependencies": [ 8 "sharp" 9- ] 10+ ], 11+ "patchedDependencies": { 12+ "next": "patches/next.patch" 13+ } 14 } 15 } 16diff --git a/patches/next.patch b/patches/next.patch 17new file mode 100644 18index 00000000..dd1d8b7c 19--- /dev/null 20+++ b/patches/next.patch 21@@ -0,0 +1,13 @@ 22+diff --git a/dist/server/lib/incremental-cache/file-system-cache.js b/dist/server/lib/incremental-cache/file-system-cache.js 23+index c5bbdefd8aa2e97df91df00d1686d63fe54c8c0d..4dcdd8760e5ed135f7509c289abb33b5005ed470 100644 24+--- a/dist/server/lib/incremental-cache/file-system-cache.js 25++++ b/dist/server/lib/incremental-cache/file-system-cache.js 26+@@ -24,7 +24,7 @@ class FileSystemCache { 27+ constructor(ctx){ 28+ this.fs = ctx.fs; 29+ this.flushToDisk = ctx.flushToDisk; 30+- this.serverDistDir = ctx.serverDistDir; 31++ this.serverDistDir = require("path").join((process.env.NIXPKGS_HOMEPAGE_CACHE_DIR || "/var/cache/homepage-dashboard"), "homepage"); 32+ this.revalidatedTags = ctx.revalidatedTags; 33+ this.debug = !!process.env.NEXT_PRIVATE_DEBUG_CACHE; 34+ if (ctx.maxMemoryCacheSize) { 35diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml 36index e3387dea..05918fa6 100644 37--- a/pnpm-lock.yaml 38+++ b/pnpm-lock.yaml 39@@ -4,6 +4,11 @@ settings: 40 autoInstallPeers: true 41 excludeLinksFromLockfile: false 42 43+patchedDependencies: 44+ next: 45+ hash: 9673472f3289a59e3cf64a56303c75752c2556c0d74d2a648eca3576b2695cab 46+ path: patches/next.patch 47+ 48 importers: 49 50 .: 51@@ -52,10 +57,10 @@ importers: 52 version: 1.2.2 53 next: 54 specifier: ^15.3.1 55- version: 15.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) 56+ version: 15.3.1(patch_hash=9673472f3289a59e3cf64a56303c75752c2556c0d74d2a648eca3576b2695cab)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) 57 next-i18next: 58 specifier: ^12.1.0 59- version: 12.1.0(next@15.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) 60+ version: 12.1.0(next@15.3.1(patch_hash=9673472f3289a59e3cf64a56303c75752c2556c0d74d2a648eca3576b2695cab)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) 61 ping: 62 specifier: ^0.4.4 63 version: 0.4.4 64@@ -98,10 +103,6 @@ importers: 65 xml-js: 66 specifier: ^1.6.11 67 version: 1.6.11 68- optionalDependencies: 69- osx-temperature-sensor: 70- specifier: ^1.0.8 71- version: 1.0.8 72 devDependencies: 73 '@tailwindcss/forms': 74 specifier: ^0.5.10 75@@ -151,6 +152,10 @@ importers: 76 typescript: 77 specifier: ^5.7.3 78 version: 5.7.3 79+ optionalDependencies: 80+ osx-temperature-sensor: 81+ specifier: ^1.0.8 82+ version: 1.0.8 83 84 packages: 85 86@@ -4901,7 +4906,7 @@ snapshots: 87 88 natural-compare@1.4.0: {} 89 90- next-i18next@12.1.0(next@15.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): 91+ next-i18next@12.1.0(next@15.3.1(patch_hash=9673472f3289a59e3cf64a56303c75752c2556c0d74d2a648eca3576b2695cab)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): 92 dependencies: 93 '@babel/runtime': 7.26.9 94 '@types/hoist-non-react-statics': 3.3.6 95@@ -4909,14 +4914,14 @@ snapshots: 96 hoist-non-react-statics: 3.3.2 97 i18next: 21.10.0 98 i18next-fs-backend: 1.2.0 99- next: 15.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) 100+ next: 15.3.1(patch_hash=9673472f3289a59e3cf64a56303c75752c2556c0d74d2a648eca3576b2695cab)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) 101 react: 18.3.1 102 react-i18next: 11.18.6(i18next@21.10.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) 103 transitivePeerDependencies: 104 - react-dom 105 - react-native 106 107- next@15.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): 108+ next@15.3.1(patch_hash=9673472f3289a59e3cf64a56303c75752c2556c0d74d2a648eca3576b2695cab)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): 109 dependencies: 110 '@next/env': 15.3.1 111 '@swc/counter': 0.1.3