From dfe21997210e4df472aa3c819e69b88639e99e58 Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Sun, 12 Oct 2025 19:50:15 +0000 Subject: [PATCH] fix(pm/bluesky): genericize build Change-Id: tlsnytpyxlmoqrvonovlplztpkvrrklm Bluesky PDS was trying to remove a specific version of atproto. This meant that as the version was bumped, the build would break. If we use find to check the right version to remove, this won't break anymore unless the build does actually need to change --- packetmix/packages/bluesky-pds/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packetmix/packages/bluesky-pds/default.nix b/packetmix/packages/bluesky-pds/default.nix index 544d536f..fc1bfbfd 100644 --- a/packetmix/packages/bluesky-pds/default.nix +++ b/packetmix/packages/bluesky-pds/default.nix @@ -79,15 +79,17 @@ package = { system, + findutils, ... }: config.inputs.nixos-unstable.result.${system}.bluesky-pds.overrideAttrs { postBuild = '' - rm -r node_modules/.pnpm/@atproto+pds@0.4.169 - mkdir -p node_modules/.pnpm/@atproto+pds@0.4.169 + atproto_pds_dir=$(${findutils}/bin/find node_modules/.pnpm -maxdepth 1 -name "@atproto+pds@*") + rm -r $atproto_pds_dir + mkdir -p $atproto_pds_dir ln -s ${ config.packages.bluesky-atproto-pds.result.${system} - }/lib node_modules/.pnpm/@atproto+pds@0.4.169/node_modules + }/lib $atproto_pds_dir/node_modules ''; }; }; -- 2.43.0