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

Configure Feed

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

build(nix): split packages into their own package files for easier time setting hash [skip ci]

dusk 79e0eeb7 40be2f7b

+98 -88
-15
.vscode/settings.json
··· 1 - { 2 - "tailwindCSS.emmetCompletions": true, 3 - "files.associations": { 4 - "*.css": "tailwindcss" 5 - }, 6 - "editor.quickSuggestions": { 7 - "strings": "on" 8 - }, 9 - "files.watcherExclude": { 10 - "**/target": true 11 - }, 12 - "conventionalCommits.scopes": [ 13 - "nix" 14 - ] 15 - }
-10
deploy.sh
··· 1 - #!/usr/bin/env bash 2 - 3 - set -x 4 - 5 - git commit -m "$1"; git push 6 - git tag -f latest && git push -f --tags 7 - 8 - cd $HOME/ark 9 - nix flake update blog 10 - nix run .#nh -- os build -H wolumonde . && nix run .#apps.nixinate.wolumonde -L --show-trace
+4 -63
flake.nix
··· 27 27 export PATH="$PATH:$PWD/node_modules/.bin" 28 28 ''; 29 29 }; 30 - packages.gazesys-modules = pkgs.stdenv.mkDerivation { 31 - name = "gazesys-modules"; 32 - 33 - src = ./.; 34 - 35 - outputHash = "sha256-CO0bFv5WbNBSgucHCb+I9kIZEkh6QqWngRra0luMtSI="; 36 - outputHashAlgo = "sha256"; 37 - outputHashMode = "recursive"; 38 - 39 - nativeBuildInputs = [pkgs.bun]; 40 - 41 - dontConfigure = true; 42 - dontCheck = true; 43 - dontFixup = true; 44 - dontPatchShebangs = true; 45 - 46 - buildPhase = "bun install --no-cache --no-progress --frozen-lockfile"; 47 - installPhase = '' 48 - mkdir -p $out 49 - 50 - cp -R ./node_modules/* $out 51 - cp -R ./node_modules/.bin $out 52 - ls -la $out 53 - ''; 54 - }; 55 - packages.gazesys = pkgs.stdenv.mkDerivation { 56 - name = "gazesys-website"; 57 - 58 - src = ./.; 59 - 60 - nativeBuildInputs = [pkgs.makeBinaryWrapper]; 61 - buildInputs = [pkgs.bun]; 62 - 63 - PUBLIC_BASE_URL="http://localhost:5173"; 64 - 65 - dontCheck = true; 66 - 67 - configurePhase = '' 68 - runHook preConfigure 69 - cp -R --no-preserve=ownership ${config.packages.gazesys-modules} node_modules 70 - find node_modules -type d -exec chmod 755 {} \; 71 - substituteInPlace node_modules/.bin/vite \ 72 - --replace-fail "/usr/bin/env node" "${pkgs.bun}/bin/bun --bun" 73 - runHook postConfigure 74 - ''; 75 - buildPhase = '' 76 - runHook preBuild 77 - bun --prefer-offline run build 78 - runHook postBuild 79 - ''; 80 - installPhase = '' 81 - runHook preInstall 82 - 83 - mkdir -p $out/bin 84 - cp -R ./build/* $out 85 - 86 - makeBinaryWrapper ${pkgs.bun}/bin/bun $out/bin/website \ 87 - --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.bun ]} \ 88 - --add-flags "run --bun --no-install --cwd $out start" 89 - 90 - runHook postInstall 91 - ''; 30 + packages.gazesys-modules = pkgs.callPackage ./nix/modules.nix {}; 31 + packages.gazesys = pkgs.callPackage ./nix { 32 + inherit (config.packages) gazesys-modules; 92 33 }; 93 34 packages.default = config.packages.gazesys; 94 - }; 95 35 }; 36 + }; 96 37 }
+58
nix/default.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + bun, 5 + makeBinaryWrapper, 6 + gazesys-modules, 7 + }: 8 + stdenv.mkDerivation { 9 + name = "gazesys-website"; 10 + 11 + src = lib.fileset.toSource { 12 + root = ../.; 13 + fileset = lib.fileset.unions [ 14 + ../src 15 + ../static 16 + ../bun.lockb 17 + ../package.json 18 + ../postcss.config.js 19 + ../svelte.config.js 20 + ../tailwind.config.js 21 + ../tsconfig.json 22 + ../vite.config.ts 23 + ]; 24 + }; 25 + 26 + nativeBuildInputs = [makeBinaryWrapper]; 27 + buildInputs = [bun]; 28 + 29 + PUBLIC_BASE_URL="http://localhost:5173"; 30 + 31 + dontCheck = true; 32 + 33 + configurePhase = '' 34 + runHook preConfigure 35 + cp -R --no-preserve=ownership ${gazesys-modules} node_modules 36 + find node_modules -type d -exec chmod 755 {} \; 37 + substituteInPlace node_modules/.bin/vite \ 38 + --replace-fail "/usr/bin/env node" "${bun}/bin/bun --bun" 39 + runHook postConfigure 40 + ''; 41 + buildPhase = '' 42 + runHook preBuild 43 + bun --prefer-offline run build 44 + runHook postBuild 45 + ''; 46 + installPhase = '' 47 + runHook preInstall 48 + 49 + mkdir -p $out/bin 50 + cp -R ./build/* $out 51 + 52 + makeBinaryWrapper ${bun}/bin/bun $out/bin/website \ 53 + --prefix PATH : ${lib.makeBinPath [ bun ]} \ 54 + --add-flags "run --bun --no-install --cwd $out start" 55 + 56 + runHook postInstall 57 + ''; 58 + }
+36
nix/modules.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + bun, 5 + }: 6 + stdenv.mkDerivation { 7 + name = "gazesys-modules"; 8 + 9 + src = lib.fileset.toSource { 10 + root = ../.; 11 + fileset = lib.fileset.unions [ 12 + ../bun.lockb 13 + ../package.json 14 + ]; 15 + }; 16 + 17 + outputHash = "sha256-CO0bFv5WbNBSgucHCb+I9kIZEkh6QqWngRra0luMtSI="; 18 + outputHashAlgo = "sha256"; 19 + outputHashMode = "recursive"; 20 + 21 + nativeBuildInputs = [bun]; 22 + 23 + dontConfigure = true; 24 + dontCheck = true; 25 + dontFixup = true; 26 + dontPatchShebangs = true; 27 + 28 + buildPhase = "bun install --no-cache --no-progress --frozen-lockfile"; 29 + installPhase = '' 30 + mkdir -p $out 31 + 32 + cp -R ./node_modules/* $out 33 + cp -R ./node_modules/.bin $out 34 + ls -la $out 35 + ''; 36 + }