From aaa43b77a2b5ca3449459ab4d28593798a3a8bf4 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packetmix/packages/bluesky-pds/default.nix b/packetmix/packages/bluesky-pds/default.nix index 544d536f..bc8b269d 100644 --- a/packetmix/packages/bluesky-pds/default.nix +++ b/packetmix/packages/bluesky-pds/default.nix @@ -83,11 +83,12 @@ }: 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=$(${pkgs.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