$ go run main.go
# command-line-arguments
/nix/store/3v17dij8rvg7q99009swxg52995r7s22-go-1.22.5/share/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/nix/store/2p1sq1nr09xr3xb1a9lrjgdanvk1aakb-binutils-2.42/bin/ld: cannot find -lhd: No such file or directory
collect2: error: ld returned 1 exit status
nix build works fine though.