2022-08-21 13:32:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "q";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.19.2";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natesales";
|
|
|
|
repo = "q";
|
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-kfuf0iwRYNxd9TfIIHvAqLxXjesQh7jC0evT9DQrrzQ=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
vendorHash = "sha256-6kdf+LwMrIjwC3uZHlMdpEHvonxKfr86PQaMOgzgYOc=";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
doCheck = false; # tries to resolve DNS
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tiny and feature-rich command line DNS client with support for UDP, TCP, DoT, DoH, DoQ, and ODoH";
|
2022-08-21 13:32:41 +00:00
|
|
|
homepage = "https://github.com/natesales/q";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = [ lib.maintainers.das_j ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "q";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
}
|