diff --git a/README.md b/README.md index 4fa85cd..e40f48a 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,4 @@ * [cliclick](https://github.com/BlueM/cliclick) * [phantomjs](https://github.com/ariya/phantomjs) * [proximity-sort](https://github.com/jonhoo/proximity-sort) +* [q](https://github.com/natesales/q) diff --git a/overlay.nix b/overlay.nix index 16f21ac..83a7bc0 100644 --- a/overlay.nix +++ b/overlay.nix @@ -7,4 +7,5 @@ let custom = super.callPackage ./packages.nix { }; in inherit (custom) cliclick; inherit (custom) phantomjs; inherit (custom) proximity-sort; + inherit (custom) q; } diff --git a/packages.nix b/packages.nix index 775c9f3..fd82973 100644 --- a/packages.nix +++ b/packages.nix @@ -5,4 +5,5 @@ cliclick = import ./packages/cliclick.nix { inherit system lib pkgs; }; phantomjs = import ./packages/phantomjs.nix { inherit system lib pkgs; }; proximity-sort = import ./packages/proximity-sort.nix { inherit system lib pkgs; }; + q = import ./packages/q.nix { inherit system lib pkgs; }; } diff --git a/packages/q.nix b/packages/q.nix new file mode 100644 index 0000000..47e3152 --- /dev/null +++ b/packages/q.nix @@ -0,0 +1,24 @@ +{ system, lib, pkgs }: + +pkgs.buildGoModule rec { + pname = "q"; + version = "0.8.0"; + + src = pkgs.fetchFromGitHub { + owner = "natesales"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-Fh91SeyXFTXQS1E0w0Lb98mm5gas3xjpo3rSzUGKK1E="; + }; + + vendorSha256 = "sha256-jBPCZ2vnI6gnRdnKkWzrh8mYwxp3Xfvyd28ZveAYZdc="; + + 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 ]; + platforms = [ "x86_64-darwin" "aarch64-darwin" ]; + }; +}