clash-verge: don't hardcode clash-meta

This commit is contained in:
Weijia Wang 2024-03-10 20:14:16 +01:00
parent ed15e72bb1
commit 53548c6a89

View File

@ -42,13 +42,13 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
mv usr/* $out
rm $out/bin/{clash,clash-meta}
runHook postInstall
'';
postFixup = ''
ln -s ${lib.getExe clash-meta} $out/bin/clash-meta
rm -f $out/bin/clash
ln -sf ${lib.getExe clash-meta} $out/bin/${clash-meta.meta.mainProgram}
'';
meta = with lib; {