data endpoint for entity 90008 (aka. a website)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix nix packages

dawn 9a31eccc 755eaebf

+20 -12
+12 -5
nix/default.nix
··· 4 4 bun, 5 5 skia, 6 6 jemalloc, 7 + musl, 8 + glibc, 9 + autoPatchelfHook, 7 10 makeBinaryWrapper, 8 11 endpoint-modules, 9 12 PUBLIC_BASE_URL ? "http://localhost:5173", ··· 29 32 ]; 30 33 }; 31 34 32 - nativeBuildInputs = [makeBinaryWrapper]; 33 - buildInputs = [bun]; 35 + nativeBuildInputs = [makeBinaryWrapper autoPatchelfHook]; 36 + buildInputs = [bun stdenv.cc.cc.lib skia glibc musl]; 34 37 35 38 inherit PUBLIC_BASE_URL; 36 39 ··· 38 41 39 42 configurePhase = '' 40 43 runHook preConfigure 41 - cp -R --no-preserve=ownership ${endpoint-modules} node_modules 44 + cp -R --no-preserve=ownership,mode ${endpoint-modules} node_modules 45 + find node_modules/.bin -exec chmod 755 {} \; 42 46 find node_modules -type d -exec chmod 755 {} \; 47 + substituteInPlace node_modules/.bin/vite \ 48 + --replace-fail "/usr/bin/env node" "${bun}/bin/bun --bun" 43 49 runHook postConfigure 44 50 ''; 45 51 buildPhase = '' 46 52 runHook preBuild 47 - HOME=$TMPDIR ${bun}/bin/bun run build 53 + export LD_LIBRARY_PATH="${lib.makeLibraryPath [stdenv.cc.cc.lib musl glibc]}:$LD_LIBRARY_PATH" 54 + HOME=$TMPDIR ${bun}/bin/bun --prefer-offline run build 48 55 runHook postBuild 49 56 ''; 50 57 installPhase = '' ··· 60 67 --set LD_PRELOAD "${jemalloc}/lib/libjemalloc.so.2" \ 61 68 --set MALLOC_ARENA_MAX 2 \ 62 69 --set VIPS_CONCURRENY 1 \ 63 - --add-flags "$out/index.js" 70 + --add-flags "run --bun --no-install --cwd $out index.js" 64 71 65 72 runHook postInstall 66 73 '';
+6 -6
nix/modules.nix
··· 14 14 ]; 15 15 }; 16 16 17 - nativeBuildInputs = [ bun ]; 17 + nativeBuildInputs = [bun]; 18 + 19 + outputHash = "sha256-fwpwLHGy3OB9exGCXCg0XjKBb6PuhMYpjIR77kob9ns="; 20 + outputHashAlgo = "sha256"; 21 + outputHashMode = "recursive"; 18 22 19 23 dontConfigure = true; 20 24 dontCheck = true; 21 25 dontFixup = true; 22 - dontPatchShebangs = true; 23 - 24 - postUnpack = '' 25 26 26 - ''; 27 27 buildPhase = '' 28 - HOME=$TMPDIR bun install --frozen-lockfile 28 + HOME=$TMPDIR bun install --no-cache --no-progress --frozen-lockfile 29 29 ''; 30 30 installPhase = '' 31 31 cp -R node_modules $out
+2 -1
package.json
··· 64 64 "esbuild", 65 65 "protobufjs", 66 66 "sharp", 67 - "svelte-preprocess" 67 + "svelte-preprocess", 68 + "skia-canvas" 68 69 ] 69 70 }