nixpkgs/pkgs/by-name/cl/clash-nyanpasu/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.0 KiB
Nix
Raw Normal View History

2024-07-06 06:37:13 +01:00
{
lib,
appimageTools,
fetchurl,
nix-update-script,
2024-03-10 19:15:06 +00:00
}:
2024-07-06 06:37:13 +01:00
appimageTools.wrapType2 rec {
2024-03-10 19:15:06 +00:00
pname = "clash-nyanpasu";
2024-09-18 08:25:59 +01:00
version = "1.6.1";
2024-03-10 19:15:06 +00:00
src = fetchurl {
2024-07-06 06:37:13 +01:00
url = "https://github.com/LibNyanpasu/clash-nyanpasu/releases/download/v${version}/clash-nyanpasu_${version}_amd64.AppImage";
2024-09-18 08:25:59 +01:00
hash = "sha256-buxhsO/X4orChaMYA2JgceeybWRlryPqY1PlF+9KoNI=";
2024-03-10 19:15:06 +00:00
};
2024-07-06 06:37:13 +01:00
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";
2024-03-10 19:15:06 +00:00
homepage = "https://github.com/keiko233/clash-nyanpasu";
2024-07-06 06:37:13 +01:00
license = lib.licenses.gpl3Plus;
2024-03-10 19:15:06 +00:00
mainProgram = "clash-nyanpasu";
2024-07-06 06:37:13 +01:00
maintainers = with lib.maintainers; [ Guanran928 ];
platforms = [ "x86_64-linux" ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}