mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, dpkg
|
|
, wrapGAppsHook3
|
|
, autoPatchelfHook
|
|
, clash-meta
|
|
, openssl
|
|
, webkitgtk
|
|
, udev
|
|
, libayatana-appindicator
|
|
, nix-update-script
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clash-verge";
|
|
version = "1.3.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/zzzgydi/clash-verge/releases/download/v${version}/clash-verge_${version}_amd64.deb";
|
|
hash = "sha256-kOju4yaa+EKzFWDrk0iSJVoWkQMBjQG3hKLfAsqlsy8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
dpkg
|
|
wrapGAppsHook3
|
|
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
|
|
'';
|
|
|
|
postFixup = ''
|
|
rm -f $out/bin/clash
|
|
ln -sf ${lib.getExe clash-meta} $out/bin/${clash-meta.meta.mainProgram}
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
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 ];
|
|
mainProgram = "clash-verge";
|
|
};
|
|
}
|