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
+4
-3
packetmix/packages/bluesky-pds/default.nix
+4
-3
packetmix/packages/bluesky-pds/default.nix
···
83
}:
84
config.inputs.nixos-unstable.result.${system}.bluesky-pds.overrideAttrs {
85
postBuild = ''
86
-
rm -r node_modules/.pnpm/@atproto+pds@0.4.169
87
-
mkdir -p node_modules/.pnpm/@atproto+pds@0.4.169
88
ln -s ${
89
config.packages.bluesky-atproto-pds.result.${system}
90
-
}/lib node_modules/.pnpm/@atproto+pds@0.4.169/node_modules
91
'';
92
};
93
};
···
83
}:
84
config.inputs.nixos-unstable.result.${system}.bluesky-pds.overrideAttrs {
85
postBuild = ''
86
+
atproto_pds_dir=$(${pkgs.findutils}/bin/find node_modules/.pnpm -maxdepth 1 -name "@atproto+pds@*")
87
+
rm -r $atproto_pds_dir
88
+
mkdir -p $atproto_pds_dir
89
ln -s ${
90
config.packages.bluesky-atproto-pds.result.${system}
91
+
}/lib $atproto_pds_dir/node_modules
92
'';
93
};
94
};