clash-verge: don't hardcode clash-meta
This commit is contained in:
parent
ed15e72bb1
commit
53548c6a89
1 changed files with 2 additions and 2 deletions
|
@ -42,13 +42,13 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
mv usr/* $out
|
mv usr/* $out
|
||||||
rm $out/bin/{clash,clash-meta}
|
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
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; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue