depot/third_party/nixpkgs/pkgs/by-name/cl/clash-nyanpasu/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
1 KiB
Nix

{
lib,
appimageTools,
fetchurl,
nix-update-script,
}:
appimageTools.wrapType2 rec {
pname = "clash-nyanpasu";
version = "1.6.0";
src = fetchurl {
url = "https://github.com/LibNyanpasu/clash-nyanpasu/releases/download/v${version}/clash-nyanpasu_${version}_amd64.AppImage";
hash = "sha256-Xl6FRwYDXztirDZEr8Xn13BNZBW54TdwsK8H0rnLEgU=";
};
extraInstallCommands =
let
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
''
install -Dm444 ${appimageContents}/clash-nyanpasu.desktop -t $out/share/applications
cp -r ${appimageContents}/usr/share/icons $out/share
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Clash GUI based on tauri";
homepage = "https://github.com/keiko233/clash-nyanpasu";
license = lib.licenses.gpl3Plus;
mainProgram = "clash-nyanpasu";
maintainers = with lib.maintainers; [ Guanran928 ];
platforms = [ "x86_64-linux" ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}