mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-23 05:35:50 +02:00
Merge pull request #232373 from SamLukeYes/clash-verge
clash-verge: 1.3.1 -> 1.3.2, remove bundled clash cores
This commit is contained in:
commit
344ab3d688
|
@ -4,6 +4,8 @@
|
||||||
, dpkg
|
, dpkg
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
|
, clash
|
||||||
|
, clash-meta
|
||||||
, openssl
|
, openssl
|
||||||
, webkitgtk
|
, webkitgtk
|
||||||
, udev
|
, udev
|
||||||
|
@ -12,15 +14,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "clash-verge";
|
pname = "clash-verge";
|
||||||
version = "1.3.1";
|
version = "1.3.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/zzzgydi/clash-verge/releases/download/v${version}/clash-verge_${version}_amd64.deb";
|
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 = [
|
nativeBuildInputs = [
|
||||||
dpkg
|
dpkg
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
|
@ -43,10 +43,16 @@ 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 = ''
|
||||||
|
ln -s ${lib.getExe clash} $out/bin/clash
|
||||||
|
ln -s ${lib.getExe clash-meta} $out/bin/clash-meta
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Clash GUI based on tauri";
|
description = "A Clash GUI based on tauri";
|
||||||
homepage = "https://github.com/zzzgydi/clash-verge";
|
homepage = "https://github.com/zzzgydi/clash-verge";
|
||||||
|
|
Loading…
Reference in a new issue