Unverified Commit 344ab3d6 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #232373 from SamLukeYes/clash-verge

clash-verge: 1.3.1 -> 1.3.2, remove bundled clash cores
parents bd25a83f b9ed6e19
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@
, dpkg
, wrapGAppsHook
, autoPatchelfHook
, clash
, clash-meta
, openssl
, webkitgtk
, udev
@@ -12,15 +14,13 @@

stdenv.mkDerivation rec {
  pname = "clash-verge";
  version = "1.3.1";
  version = "1.3.2";

  src = fetchurl {
    url = "https://github.com/zzzgydi/clash-verge/releases/download/v${version}/clash-verge_${version}_amd64.deb";
    hash = "sha256-AEOFMKxrkPditf5ks++tII6zeuH72Fxw/TVtZeXS3v4=";
    hash = "sha256-46+7P9WH85fC3m+5LQHpvZX2ggeH6djoO53fQxQJdYk=";
  };

  unpackPhase = "dpkg-deb -x $src .";

  nativeBuildInputs = [
    dpkg
    wrapGAppsHook
@@ -43,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";