2024-07-03 06:38:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
autoPatchelfHook,
|
|
|
|
clash-meta,
|
|
|
|
dpkg,
|
|
|
|
fetchurl,
|
|
|
|
libayatana-appindicator,
|
|
|
|
nix-update-script,
|
|
|
|
openssl,
|
|
|
|
stdenv,
|
|
|
|
udev,
|
|
|
|
webkitgtk,
|
|
|
|
wrapGAppsHook3,
|
2024-03-10 19:15:29 +00:00
|
|
|
}:
|
|
|
|
|
2024-07-03 06:38:29 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-03-10 19:15:29 +00:00
|
|
|
pname = "clash-verge-rev";
|
2024-07-17 09:29:23 +00:00
|
|
|
version = "1.7.5";
|
2024-03-10 19:15:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-07-03 06:38:29 +00:00
|
|
|
url = "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/v${finalAttrs.version}/clash-verge_${finalAttrs.version}_amd64.deb";
|
2024-07-17 09:29:23 +00:00
|
|
|
hash = "sha256-pVEP+A4W6xLShFXuXPA6P+HZT8Hqkj/HRW2LaOOBI6U=";
|
2024-03-10 19:15:29 +00:00
|
|
|
};
|
|
|
|
|
2024-07-03 06:38:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
dpkg
|
|
|
|
wrapGAppsHook3
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
runtimeDependencies = [
|
|
|
|
(lib.getLib udev)
|
|
|
|
libayatana-appindicator
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv usr/* $out
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
rm -f $out/bin/verge-mihomo
|
|
|
|
ln -sf ${lib.getExe clash-meta} $out/bin/verge-mihomo
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Clash GUI based on tauri";
|
2024-03-10 19:15:29 +00:00
|
|
|
homepage = "https://github.com/clash-verge-rev/clash-verge-rev";
|
2024-07-03 06:38:29 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
mainProgram = "clash-verge";
|
|
|
|
maintainers = with lib.maintainers; [ Guanran928 ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
|
|
};
|
2024-03-10 19:15:29 +00:00
|
|
|
})
|