From 6bc95abd2eba3f8a8a69579379af0d0908cc838e Mon Sep 17 00:00:00 2001 From: kyehn <228304369+kyehn@users.noreply.github.com> Date: Mon, 9 Feb 2026 08:27:40 +0800 Subject: [PATCH] cpx: init at 0.1.3 --- pkgs/by-name/cp/cpx/package.nix | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/cp/cpx/package.nix diff --git a/pkgs/by-name/cp/cpx/package.nix b/pkgs/by-name/cp/cpx/package.nix new file mode 100644 index 000000000000..c73a80be3dca --- /dev/null +++ b/pkgs/by-name/cp/cpx/package.nix @@ -0,0 +1,34 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "cpx"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "11happy"; + repo = "cpx"; + tag = "v${finalAttrs.version}"; + hash = "sha256-tZ9NQUwnbONpJ59ByvgHESqqBWz6RaPgY6842VuAlL0="; + }; + + cargoHash = "sha256-atEB43eB8btQfMXPTCfsZ6bbAUIPzF8lUELx0Rdul84="; + + doInstallCheck = true; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + meta = { + changelog = "https://github.com/11happy/cpx/releases/tag/v${finalAttrs.version}"; + description = "File copy tool for Linux with progress bars, resume capability"; + homepage = "https://github.com/11happy/cpx"; + license = lib.licenses.mit; + mainProgram = "cpx"; + maintainers = with lib.maintainers; [ kyehn ]; + platforms = lib.platforms.linux; + }; +})