From f5d6cc45069a050aecfa4c276fb78a1a77375deb Mon Sep 17 00:00:00 2001 From: chillcicada <2210227279@qq.com> Date: Sat, 4 Jul 2026 18:40:45 +0800 Subject: [PATCH] pikpaktui: init at 0.0.56 --- pkgs/by-name/pi/pikpaktui/package.nix | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pkgs/by-name/pi/pikpaktui/package.nix diff --git a/pkgs/by-name/pi/pikpaktui/package.nix b/pkgs/by-name/pi/pikpaktui/package.nix new file mode 100644 index 000000000000..69c0e3f5343f --- /dev/null +++ b/pkgs/by-name/pi/pikpaktui/package.nix @@ -0,0 +1,48 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + openssl, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "pikpaktui"; + version = "0.0.56"; + + strictDeps = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "Bengerthelorf"; + repo = "pikpaktui"; + tag = "v${finalAttrs.version}"; + hash = "sha256-LUOVfjNutjtXk4omjSoJNA+b2sACnXZsRNlUB7oWD60="; + }; + + cargoHash = "sha256-lTLZm+gPH4qYfZSsZ4YXcz5Zd8U7JYX+b9U2wwm08ew="; + + nativeBuildInputs = [ pkg-config ]; + + env.OPENSSL_NO_VENDOR = 1; + + buildInputs = [ openssl ]; + + __darwinAllowLocalNetworking = true; + + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { extraArgs = [ "--use-github-releases" ]; }; + + meta = { + description = "TUI and CLI client for PikPak cloud storage"; + homepage = "https://app.snaix.homes/pikpaktui/"; + downloadPage = "https://github.com/Bengerthelorf/pikpaktui/releases"; + license = lib.licenses.asl20; + mainProgram = "pikpaktui"; + maintainers = with lib.maintainers; [ chillcicada ]; + }; +})