1
0
Fork 0
nix-overlay/packages/q.nix

26 lines
701 B
Nix
Raw Normal View History

2023-05-10 23:04:05 +00:00
{ pkgs, lib }:
2022-06-09 19:58:46 +00:00
2024-07-26 15:41:48 +00:00
pkgs.buildGoModule rec {
2022-06-09 19:58:46 +00:00
pname = "q";
2024-01-22 02:02:26 +00:00
version = "0.19.2";
2022-06-09 19:58:46 +00:00
src = pkgs.fetchFromGitHub {
owner = "natesales";
repo = pname;
rev = "v${version}";
2024-01-22 02:02:26 +00:00
sha256 = "sha256-kfuf0iwRYNxd9TfIIHvAqLxXjesQh7jC0evT9DQrrzQ=";
2022-06-09 19:58:46 +00:00
};
2024-01-22 02:02:26 +00:00
vendorHash = "sha256-6kdf+LwMrIjwC3uZHlMdpEHvonxKfr86PQaMOgzgYOc=";
2022-06-09 19:58:46 +00:00
2024-07-26 15:41:48 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
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
};
}