diff --git a/pkgs/by-name/cl/clipaste/package.nix b/pkgs/by-name/cl/clipaste/package.nix new file mode 100644 index 000000000000..6ba9af4fa198 --- /dev/null +++ b/pkgs/by-name/cl/clipaste/package.nix @@ -0,0 +1,38 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + testers, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "clipaste"; + version = "2.4.0"; + + src = fetchFromGitHub { + owner = "hqhq1025"; + repo = "clipaste"; + tag = "v${finalAttrs.version}"; + hash = "sha256-MNrhOvdyYs99Z6Wwf2X+xCNRzc6erpLpFB/GHBJRhrg="; + }; + + cargoHash = "sha256-QrUR3xHZ/1FFkBYt5qxi0mNVTvEaWBcLSjp6OnzR9GY="; + + strictDeps = true; + __structuredAttrs = true; + + passthru = { + tests.version = testers.testVersion { + package = finalAttrs.finalPackage; + }; + }; + + meta = { + description = "Screenshot clipboard paste fix for AI agents"; + homepage = "https://github.com/hqhq1025/clipaste"; + license = lib.licenses.mit; + platforms = lib.platforms.darwin; + maintainers = with lib.maintainers; [ aaronjheng ]; + mainProgram = "clipaste"; + }; +})