diff options
author | Georges <georges.alkhouri@gmail.com> | 2022-08-17 21:03:00 +0200 |
---|---|---|
committer | Georges <georges.alkhouri@gmail.com> | 2022-08-17 21:03:00 +0200 |
commit | 7c7d89b4163ba808c8ad9372d06b40284916ddc3 (patch) | |
tree | 05cb6be953d0c88ca172d21d22aa5dc361daea2f /pkgs/tools/networking/doggo | |
parent | 069747c8f4e076d4dd43e26cf1f9c6bca674f8bd (diff) | |
download | nixlib-7c7d89b4163ba808c8ad9372d06b40284916ddc3.tar nixlib-7c7d89b4163ba808c8ad9372d06b40284916ddc3.tar.gz nixlib-7c7d89b4163ba808c8ad9372d06b40284916ddc3.tar.bz2 nixlib-7c7d89b4163ba808c8ad9372d06b40284916ddc3.tar.lz nixlib-7c7d89b4163ba808c8ad9372d06b40284916ddc3.tar.xz nixlib-7c7d89b4163ba808c8ad9372d06b40284916ddc3.tar.zst nixlib-7c7d89b4163ba808c8ad9372d06b40284916ddc3.zip |
doggo: init at 0.5.4
Diffstat (limited to 'pkgs/tools/networking/doggo')
-rw-r--r-- | pkgs/tools/networking/doggo/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/networking/doggo/default.nix b/pkgs/tools/networking/doggo/default.nix new file mode 100644 index 000000000000..713cc38edf1e --- /dev/null +++ b/pkgs/tools/networking/doggo/default.nix @@ -0,0 +1,48 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + runCommand, + installShellFiles, +}: let + buildDate = "2022-08-15T21:36:49"; + buildCommit = "2cf9e7b"; +in + with lib; + buildGoModule rec { + pname = "doggo"; + version = "0.5.4"; + vendorSha256 = "sha256-pyzu89HDFrMQqYJZC2vdqzOc6PiAbqhaTgYakmN0qj8="; + src = fetchFromGitHub { + owner = "mr-karan"; + repo = "doggo"; + rev = "v0.5.4"; + sha256 = "sha256-6jNs8vigrwKk47Voe42J9QYMTP7KnNAtJ5vFZTUW680="; + }; + + nativeBuildInputs = [installShellFiles]; + subPackages = ["cmd/doggo"]; + + ldflags = [ + "-w -s" + "-X main.buildVersion=${buildCommit}" + "-X main.buildDate=${buildDate}" + ]; + + postInstall = '' + installShellCompletion --cmd doggo --fish --name doggo.fish completions/doggo.fish + installShellCompletion --cmd doggo --zsh --name _doggo completions/doggo.zsh + ''; + + meta = { + 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]; + }; + } |