Files
nixpkgs/pkgs/by-name/do/doggo/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.4 KiB
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
installShellFiles,
nix-update-script,
}:
buildGoModule rec {
pname = "doggo";
version = "1.0.5";
src = fetchFromGitHub {
owner = "mr-karan";
repo = "doggo";
rev = "v${version}";
hash = "sha256-SbTwVvE699MCgfUXifnJ1oMNN8TdLg8P03Xx5hrQxF8=";
};
vendorHash = "sha256-44gBPMr6gKaRaq7W69K7OBTVXvsz9pSEL1eOKYd4fT8=";
nativeBuildInputs = [ installShellFiles ];
subPackages = [ "cmd/doggo" ];
ldflags = [
"-s"
"-X main.buildVersion=v${version}"
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd doggo \
--bash <($out/bin/doggo completions bash) \
--fish <($out/bin/doggo completions fish) \
--zsh <($out/bin/doggo completions zsh)
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://github.com/mr-karan/doggo";
description = "Command-line DNS Client for Humans. Written in Golang";
mainProgram = "doggo";
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;
maintainers = with maintainers; [
georgesalkhouri
ma27
];
};
}