{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: buildGoModule rec { pname = "hugo"; version = "0.96.0"; src = fetchFromGitHub { owner = "gohugoio"; repo = pname; rev = "v${version}"; sha256 = "sha256-3O+ZdOloh5gILPQssztt7s/MwRgDOnpJItwLn7FXnPU="; }; vendorSha256 = "sha256-TgE/ToHBg2QBgtk0gPZTV/icIbQN14RpVAbL/8b+W0U="; doCheck = false; proxyVendor = true; tags = [ "extended" ]; subPackages = [ "." ]; nativeBuildInputs = [ installShellFiles ]; postInstall = '' $out/bin/hugo gen man installManPage man/* installShellCompletion --cmd hugo \ --bash <($out/bin/hugo completion bash) \ --fish <($out/bin/hugo completion fish) \ --zsh <($out/bin/hugo completion zsh) ''; meta = with lib; { description = "A fast and modern static website engine"; homepage = "https://gohugo.io"; license = licenses.asl20; maintainers = with maintainers; [ schneefux Br1ght0ne Frostman ]; }; }