2023-05-10 23:04:05 +00:00
|
|
|
{ pkgs, lib }:
|
2022-06-09 19:58:46 +00:00
|
|
|
|
|
|
|
pkgs.buildGoModule rec {
|
|
|
|
pname = "q";
|
2023-07-10 11:03:35 +00:00
|
|
|
version = "0.11.3";
|
2022-06-09 19:58:46 +00:00
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "natesales";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-07-10 11:03:35 +00:00
|
|
|
sha256 = "sha256-lhExnXxM28aIiFsYy46sOfWSsLD/+lnQnZY2ZY0D90o=";
|
2022-06-09 19:58:46 +00:00
|
|
|
};
|
|
|
|
|
2023-07-10 11:03:35 +00:00
|
|
|
vendorSha256 = "sha256-cZRaf5Ks6Y4PzeVN0Lf1TxXzrifb7uQzsMbZf6JbLK4=";
|
2022-06-09 19:58:46 +00:00
|
|
|
|
2022-06-09 20:06:29 +00:00
|
|
|
ldflags = "-s -w -X main.version=release";
|
2022-06-09 19:58:46 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tiny command line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH.";
|
|
|
|
homepage = "https://github.com/natesales/q";
|
|
|
|
license = [ licenses.gpl3Only ];
|
2022-07-31 18:41:26 +00:00
|
|
|
platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ];
|
2022-06-09 19:58:46 +00:00
|
|
|
};
|
|
|
|
}
|