Unverified Commit 2f429033 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #186894 from GeorgesAlkhouri/submit/doggo

parents 0acceffa 397ad93d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4833,6 +4833,15 @@
      fingerprint = "386E D1BF 848A BB4A 6B4A  3C45 FC83 907C 125B C2BC";
    }];
  };
  georgesalkhouri = {
    name = "Georges Alkhouri";
    email = "incense.stitch_0w@icloud.com";
    github = "GeorgesAlkhouri";
    githubId = 6077574;
    keys = [{
      fingerprint = "1608 9E8D 7C59 54F2 6A7A 7BD0 8BD2 09DC C54F D339";
    }];
  };
  georgewhewell = {
    email = "georgerw@gmail.com";
    github = "georgewhewell";
+44 −0
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:

buildGoModule rec {
  pname = "doggo";
  version = "0.5.4";

  src = fetchFromGitHub {
    owner = "mr-karan";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-6jNs8vigrwKk47Voe42J9QYMTP7KnNAtJ5vFZTUW680=";
  };

  vendorSha256 = "sha256-pyzu89HDFrMQqYJZC2vdqzOc6PiAbqhaTgYakmN0qj8=";
  nativeBuildInputs = [ installShellFiles ];
  subPackages = [ "cmd/doggo" ];

  ldflags = [
    "-w -s"
    "-X main.buildVersion=v${version}"
  ];

  postInstall = ''
    installShellCompletion --cmd doggo \
      --fish --name doggo.fish completions/doggo.fish \
      --zsh --name _doggo completions/doggo.zsh
  '';

  meta = with lib; {
    homepage = "https://github.com/mr-karan/doggo";
    description = "Command-line DNS Client for Humans. Written in Golang";
    longDescription = ''
      doggo is a modern command-line DNS client (like dig) written in Golang.
      It outputs information in a neat concise manner and supports protocols like DoH, DoT, DoQ, and DNSCrypt as well
    '';
    license = licenses.gpl3Only;
    platforms = platforms.linux;
    maintainers = with maintainers; [ georgesalkhouri ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -5819,6 +5819,8 @@ with pkgs;
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  doggo = callPackage ../tools/networking/doggo { };
  dosfstools = callPackage ../tools/filesystems/dosfstools { };
  dotnetfx35 = callPackage ../development/libraries/dotnetfx35 { };