{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: buildGoModule rec { pname = "hugo"; version = "0.103.1"; src = fetchFromGitHub { owner = "gohugoio"; repo = pname; rev = "v${version}"; sha256 = "sha256-KSNBbSJROx65WxOd98XLLbbSDL0x4ESEKVIsrZV911k="; }; vendorSha256 = "sha256-Y0+D5H7kWi+bacJm1pouYDPHnnSRPatOt6qPfkk92X4="; doCheck = false; proxyVendor = true; tags = [ "extended" ]; subPackages = [ "." ]; nativeBuildInputs = [ installShellFiles ]; ldflags = [ "-s" "-w" "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=nixpkgs" ]; 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 ]; }; }