local.pkgs.misskey: use symlink for pnpm store

This commit is contained in:
陈浩南 2023-09-30 10:51:37 +08:00
parent 1118e86d62
commit fde802ebfc

View File

@ -17,7 +17,7 @@ let
{
inherit pname version src;
nodejs = nodejs_20;
copyPnpmStore = true;
copyPnpmStore = false;
};
startScript = writeShellScript "misskey"
''
@ -97,7 +97,7 @@ in
mkdir -p $(dirname $store)
cp -f ${originalPnpmPackage.passthru.patchedLockfileYaml} pnpm-lock.yaml
cp -RL ${originalPnpmPackage.passthru.pnpmStore} $store
ln -s ${originalPnpmPackage.passthru.pnpmStore} $store
chmod -R +w $store
pnpm install --frozen-lockfile --offline