mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
clash-verge: init at 1.2.3
This commit is contained in:
parent
1016916d98
commit
053c4dea8f
60
pkgs/applications/networking/clash-verge/default.nix
Normal file
60
pkgs/applications/networking/clash-verge/default.nix
Normal file
@ -0,0 +1,60 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, dpkg
|
||||
, wrapGAppsHook
|
||||
, autoPatchelfHook
|
||||
, openssl
|
||||
, webkitgtk
|
||||
, udev
|
||||
, libappindicator-gtk3
|
||||
, libayatana-appindicator
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "clash-verge";
|
||||
version = "1.2.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/zzzgydi/clash-verge/releases/download/v${version}/clash-verge_${version}_amd64.deb";
|
||||
hash = "sha256-uiw9kcXJ4ZEu+naUbUrgN/zBYE2bSWVPmMQ+HiAP4D4=";
|
||||
};
|
||||
|
||||
unpackPhase = "dpkg-deb -x $src .";
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
wrapGAppsHook
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
webkitgtk
|
||||
stdenv.cc.cc
|
||||
];
|
||||
|
||||
runtimeDependencies = [
|
||||
(lib.getLib udev)
|
||||
libappindicator-gtk3
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -4024,6 +4024,8 @@ with pkgs;
|
||||
|
||||
clash-meta = callPackage ../tools/networking/clash-meta { };
|
||||
|
||||
clash-verge = callPackage ../applications/networking/clash-verge { };
|
||||
|
||||
clevercsv = with python3Packages; toPythonApplication clevercsv;
|
||||
|
||||
clevis = callPackage ../tools/security/clevis {
|
||||
|
Loading…
Reference in New Issue
Block a user