mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
Apply suggestions from code review
Co-authored-by: Mostly Void <dit7ya@users.noreply.github.com> Co-authored-by: Dee Anzorge <DeeUnderscore@users.noreply.github.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
bf177162ae
commit
397ad93dd3
|
@ -1,48 +1,44 @@
|
||||||
{
|
{ lib
|
||||||
lib,
|
, buildGoModule
|
||||||
buildGoModule,
|
, fetchFromGitHub
|
||||||
fetchFromGitHub,
|
, installShellFiles
|
||||||
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];
|
buildGoModule rec {
|
||||||
subPackages = ["cmd/doggo"];
|
pname = "doggo";
|
||||||
|
version = "0.5.4";
|
||||||
|
|
||||||
ldflags = [
|
src = fetchFromGitHub {
|
||||||
"-w -s"
|
owner = "mr-karan";
|
||||||
"-X main.buildVersion=${buildCommit}"
|
repo = pname;
|
||||||
"-X main.buildDate=${buildDate}"
|
rev = "v${version}";
|
||||||
];
|
sha256 = "sha256-6jNs8vigrwKk47Voe42J9QYMTP7KnNAtJ5vFZTUW680=";
|
||||||
|
};
|
||||||
|
|
||||||
postInstall = ''
|
vendorSha256 = "sha256-pyzu89HDFrMQqYJZC2vdqzOc6PiAbqhaTgYakmN0qj8=";
|
||||||
installShellCompletion --cmd doggo --fish --name doggo.fish completions/doggo.fish
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
installShellCompletion --cmd doggo --zsh --name _doggo completions/doggo.zsh
|
subPackages = [ "cmd/doggo" ];
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
ldflags = [
|
||||||
homepage = "https://github.com/mr-karan/doggo";
|
"-w -s"
|
||||||
description = "Command-line DNS Client for Humans. Written in Golang";
|
"-X main.buildVersion=v${version}"
|
||||||
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
|
postInstall = ''
|
||||||
'';
|
installShellCompletion --cmd doggo \
|
||||||
license = licenses.gpl3Only;
|
--fish --name doggo.fish completions/doggo.fish \
|
||||||
platforms = platforms.linux;
|
--zsh --name _doggo completions/doggo.zsh
|
||||||
maintainers = with maintainers; [georgesalkhouri];
|
'';
|
||||||
};
|
|
||||||
}
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue