nixpkgs/pkgs/tools/networking/q/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
743 B
Nix
Raw Normal View History

2022-08-17 19:58:39 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "q";
2024-01-25 04:22:33 +00:00
version = "0.19.2";
2022-08-17 19:58:39 +00:00
src = fetchFromGitHub {
owner = "natesales";
repo = "q";
rev = "v${version}";
2024-01-25 04:22:33 +00:00
sha256 = "sha256-kfuf0iwRYNxd9TfIIHvAqLxXjesQh7jC0evT9DQrrzQ=";
2022-08-17 19:58:39 +00:00
};
2024-01-25 04:22:33 +00:00
vendorHash = "sha256-6kdf+LwMrIjwC3uZHlMdpEHvonxKfr86PQaMOgzgYOc=";
2022-08-17 19:58:39 +00:00
2023-12-21 16:24:04 +00:00
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
2022-08-17 19:58:39 +00:00
doCheck = false; # tries to resolve DNS
meta = {
description = "A tiny and feature-rich command line DNS client with support for UDP, TCP, DoT, DoH, DoQ, and ODoH";
homepage = "https://github.com/natesales/q";
license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.das_j ];
2024-02-11 02:19:15 +00:00
mainProgram = "q";
2022-08-17 19:58:39 +00:00
};
}