mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, dpkg
|
|
, wrapGAppsHook
|
|
, autoPatchelfHook
|
|
, openssl
|
|
, webkitgtk
|
|
, udev
|
|
, libayatana-appindicator
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clash-verge";
|
|
version = "1.3.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/zzzgydi/clash-verge/releases/download/v${version}/clash-verge_${version}_amd64.deb";
|
|
hash = "sha256-HaBr1QHU3SZix3NFEkTmMrGuk/J1dfP3Lhst79rkUl0=";
|
|
};
|
|
|
|
unpackPhase = "dpkg-deb -x $src .";
|
|
|
|
nativeBuildInputs = [
|
|
dpkg
|
|
wrapGAppsHook
|
|
autoPatchelfHook
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
webkitgtk
|
|
stdenv.cc.cc
|
|
];
|
|
|
|
runtimeDependencies = [
|
|
(lib.getLib udev)
|
|
libayatana-appindicator
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
mv usr/* $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A Clash GUI based on tauri";
|
|
homepage = "https://github.com/zzzgydi/clash-verge";
|
|
platforms = [ "x86_64-linux" ];
|
|
license = licenses.gpl3Plus;
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
maintainers = with maintainers; [ zendo ];
|
|
};
|
|
}
|