{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: buildGoModule rec { pname = "hugo"; version = "0.84.2"; src = fetchFromGitHub { owner = "gohugoio"; repo = pname; rev = "v${version}"; sha256 = "sha256-NE4vXtczzcL5f0/aDYeGnleBwsDBTzojSaek/LzowFo="; }; vendorSha256 = "sha256-ImXTOtN6kQL7Q8IBlmK7+i47cWtyZT0xcnQdCw3NvWM="; doCheck = false; runVend = true; buildFlags = [ "-tags" "extended" ]; subPackages = [ "." ]; nativeBuildInputs = [ installShellFiles ]; postInstall = '' $out/bin/hugo gen man installManPage man/* installShellCompletion --cmd hugo \ --bash <($out/bin/hugo gen autocomplete --type=bash) \ --fish <($out/bin/hugo gen autocomplete --type=fish) \ --zsh <($out/bin/hugo gen autocomplete --type=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 ]; }; }