clash-verge: use clash and clash-meta from nixpkgs

This commit is contained in:
SamLukeYes 2023-05-17 17:02:12 +08:00
parent b976e947e1
commit a709181137

View file

@ -4,6 +4,8 @@
, dpkg
, wrapGAppsHook
, autoPatchelfHook
, clash
, clash-meta
, openssl
, webkitgtk
, udev
@ -41,10 +43,16 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
mv usr/* $out
rm $out/bin/{clash,clash-meta}
runHook postInstall
'';
postFixup = ''
ln -s ${lib.getExe clash} $out/bin/clash
ln -s ${lib.getExe clash-meta} $out/bin/clash-meta
'';
meta = with lib; {
description = "A Clash GUI based on tauri";
homepage = "https://github.com/zzzgydi/clash-verge";