Package Details: hey-duck 0.2.0-1

Git Clone URL: https://aur.archlinux.org/hey-duck.git (read-only, click to copy)
Package Base: hey-duck
Description: Contact DuckDuckGo AI chat from your terminal
Upstream URL: https://git.blek.codes/blek/hey
Licenses: GPL3-only
Submitter: blek
Maintainer: blek
Last Packager: blek
Votes: 1
Popularity: 0.000241
First Submitted: 2024-04-14 06:30 (UTC)
Last Updated: 2024-10-22 06:00 (UTC)

Latest Comments

dllud commented on 2025-05-28 18:17 (UTC) (edited on 2025-05-28 18:17 (UTC) by dllud)

@kzoli429 The build fails because link-time optimization (LTO) is turned on by default in /etc/makepkg.conf. Unfortunately this does not work well with Rust. The current work-around, implemented in all Arch's Rust packages, is to add options=(!lto) to the PKGBUILD.

@blek I've updated the PKGBUILD to add the !lto directive and also fix a few other things to better adhere to Arch's package guidelines:

  • removed rust from makedepends (redundant, as cargo is there)
  • added license
  • use pkgver variable in source link
  • move fetch of all rust dependencies into prepare(). build() must not download anything, as per guidelines it must be able to run offline
  • make 'hey,' a symlink instead of copying the full binary again

Here follows a patch with the modifications: 0001-Fix-build-and-better-adhere-to-Arch-package-guidelin.patch

Feel free to apply it as is or take any code that's useful.

I also uploaded the modified PKGBUILD to https://gist.github.com/dllud/50d8bac7b9f452fe3d5ed112aefffabd

kzoli429 commented on 2025-03-29 14:46 (UTC)

error: could not compile hey (bin "hey") due to 1 previous error ==> ERROR: A failure occurred in build(). Aborting... -> error making: hey-duck-exit status 4 -> Failed to install the following packages. Manual intervention is required: hey-duck - exit status 4

The previous error seems to be: ...... Compiling hey v0.1.1 (/home/zoli/.yay/build/hey-duck/src/hey) error: linking with cc failed: exit status: 1 | = note: LC_ALL="C" PATH=...........

PowerdollKirby commented on 2024-05-13 10:56 (UTC)

config file reference

model = "Claude" # or "GPT3" tos = false # whether if you agree to ddg chat tos