Our Personal Data Server from scratch!
0

Configure Feed

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

tranquil-pds / frontend.nix
849 B 51 lines
1{ 2 lib, 3 stdenvNoCC, 4 nodejs, 5 pnpm_11, 6 pnpmConfigHook, 7 fetchPnpmDeps, 8 nix-update-script, 9}: 10let 11 toml = (lib.importTOML ./Cargo.toml).workspace.package; 12 pnpm = pnpm_11; 13in 14stdenvNoCC.mkDerivation (finalAttrs: { 15 pname = "tranquil-frontend"; 16 inherit (toml) version; 17 18 src = ./frontend; 19 20 pnpmDeps = fetchPnpmDeps { 21 inherit (finalAttrs) pname version src; 22 inherit pnpm; 23 fetcherVersion = 4; 24 hash = "sha256-+P4UUkZKQJVfGbDFKR0gRMU+wYK9K7NBYo1s/ebRK9I="; 25 }; 26 27 nativeBuildInputs = [ 28 pnpm 29 nodejs 30 pnpmConfigHook 31 ]; 32 33 buildPhase = '' 34 runHook preBuild 35 pnpm build 36 runHook postBuild 37 ''; 38 39 installPhase = '' 40 runHook preInstall 41 cp -r ./dist $out 42 runHook postInstall 43 ''; 44 45 passthru.updateScript = nix-update-script { 46 extraArgs = [ 47 "--version" 48 "SKIP" 49 ]; 50 }; 51})