Highly ambitious ATProtocol AppView service and sdks
0
fork

Configure Feed

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

fix nix hash

Chad Miller af1c2377 075885b9

+16 -12
+10 -2
.github/workflows/frontend.yml
··· 32 32 run: nix flake check --refresh 33 33 34 34 - name: Build frontend 35 - run: nix build .#slice-frontend 35 + run: nix build .#slice-frontend --show-trace --verbose 36 36 37 37 - name: Build Docker image 38 - run: nix build .#frontendImg 38 + run: nix build .#frontendImg --show-trace --verbose 39 39 40 40 - name: Load Docker image 41 41 run: docker load < result 42 + 43 + - name: Inspect Docker image contents 44 + run: | 45 + echo "=== Docker image contents ===" 46 + docker run --rm slice-frontend:latest ls -la /bin/slice-frontend || echo "slice-frontend symlink not found" 47 + docker run --rm slice-frontend:latest ls -la /nix/store/*/bin/slice-frontend || echo "No slice binary in nix store" 48 + docker run --rm slice-frontend:latest file /bin/slice-frontend || echo "Cannot determine file type" 49 + docker run --rm slice-frontend:latest file /nix/store/*/bin/slice-frontend || echo "Cannot determine target file type" 42 50 43 51 - name: Test Docker image 44 52 run: |
+6 -10
frontend/flake.nix
··· 24 24 src = ./.; 25 25 26 26 nativeBuildInputs = [ pkgs.deno ]; 27 - 27 + 28 28 # Fixed output derivation to allow network access 29 29 outputHashMode = "recursive"; 30 30 outputHashAlgo = "sha256"; 31 - outputHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; 31 + outputHash = "sha256-Gfi8gkC2pYtiFktpU/qBzehLIhciEla7ECWGYWSUnXw="; 32 32 33 33 buildPhase = '' 34 34 export HOME=$PWD 35 35 export DENO_DIR=$PWD/.deno 36 36 mkdir -p .deno 37 - deno compile -A --unstable-kv --no-check --output slice-frontend src/main.ts 38 - ''; 39 - 40 - installPhase = '' 41 37 mkdir -p $out/bin 42 - cp slice-frontend $out/bin/ 38 + deno compile -A --unstable-kv --no-check --target x86_64-unknown-linux-gnu --output $out/bin/slice-frontend src/main.ts 43 39 ''; 44 40 }; 45 41 ··· 48 44 name = "slice-frontend"; 49 45 tag = "latest"; 50 46 fromImage = pkgs.dockerTools.pullImage { 51 - imageName = "alpine"; 52 - imageDigest = "sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d"; 53 - sha256 = "sha256-Sfb0quuaHgzxA7paz5P51WhdA35to39HtOufceXixz0="; 47 + imageName = "debian"; 48 + imageDigest = "sha256:45f2e735295654f13e3be10da2a6892c708f71a71be845818f0058565d2d2076"; 49 + sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; 54 50 }; 55 51 copyToRoot = pkgs.buildEnv { 56 52 name = "image-root";